Compare commits
5 Commits
152ada0bad
...
sonali
| Author | SHA1 | Date | |
|---|---|---|---|
|
18876f2780
|
|||
|
b41b1071e6
|
|||
|
c83898e34c
|
|||
|
769ac030b3
|
|||
|
3801a9b5c2
|
@@ -31,3 +31,6 @@ build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### apach-maven binary ###
|
||||
apache-maven-3.9.6
|
||||
|
||||
+2
-2
@@ -19,12 +19,12 @@ RUN useradd -s /bin/bash skycrateBack
|
||||
# Create work dir
|
||||
RUN mkdir /app
|
||||
RUN chown -R skycrateBack:skycrateBack /app
|
||||
COPY ./Skycrate/target/ /app
|
||||
COPY ./target/ /app
|
||||
WORKDIR /app
|
||||
|
||||
# Switch user
|
||||
USER skycrateBack
|
||||
|
||||
# EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
CMD ["java", "-jar", "/app/skycrateBackend-0.0.1-SNAPSHOT.jar"]
|
||||
|
||||
@@ -12,8 +12,8 @@ import java.security.PrivilegedExceptionAction;
|
||||
public class HDFSConfig {
|
||||
public static FileSystem getHDFS() throws Exception {
|
||||
Configuration conf = new Configuration();
|
||||
conf.set("fs.defaultFS", "hdfs://192.168.29.56:9000");
|
||||
return FileSystem.get(new URI("hdfs://192.168.29.56:9000"), conf);
|
||||
conf.set("fs.defaultFS", "hdfs://namenode:9000");
|
||||
return FileSystem.get(new URI("hdfs://namenode:9000"), conf);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ security.jwt.secret-key=3cfa76ef14937c1c0ea519f8fc057a80fcd04a7420f8e8bcd0a7567c
|
||||
security.jwt.expiration-time=3600000
|
||||
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
||||
spring.datasource.username=kshitij
|
||||
spring.datasource.password=loa_dngLLA8729
|
||||
spring.datasource.url=jdbc:mysql://192.168.29.55:3306/skycrate
|
||||
spring.datasource.username=skycrateDB
|
||||
spring.datasource.password=${MYSQL_PASSWORD}
|
||||
spring.datasource.url=jdbc:mysql://db:3306/skycrate
|
||||
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.show-sql=true
|
||||
@@ -19,7 +19,7 @@ spring.jpa.properties.hibernate.format_sql=true
|
||||
spring.jpa.open-in-view=false
|
||||
logging.level.org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer=ERROR
|
||||
|
||||
server.port=8080
|
||||
server.port=8081
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user