Skip to content

Commit

Permalink
#1 fixup of spring props
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Aug 8, 2018
1 parent baf8862 commit 2480576
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 38 deletions.
54 changes: 31 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
/target/
!.mvn/wrapper/maven-wrapper.jar

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
**/.classpath
.DS_Store
**/nb-configuration.xml
**/.springBeans
**/testing.properties
**/*.eml
**/Scripts
.idea
*.iws
*.iml
*.ipr
test*.properties
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
.project
.idea
.metadata
.DS_Store
Servers
.settings
.classpath
mvn-repo
bin
*.war
*.log
*/nbactions.xml
*.eml
nbactions.xml
testing.properties
*/test-output
JargonVersion.java
**/${test.option.mount.basedir}
**/*.*~
*.*~
.dbeaver*
test.*.properties
**/target
target
14 changes: 5 additions & 9 deletions packaging/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
FROM tomcat:jre8-alpine
LABEL organization="iRODS"
FROM openjdk:8-jre-alpine
LABEL organization="NIEHS"
LABEL maintainer="[email protected]"
LABEL description="iRODS Metalnx Browser"
LABEL description="iRODS Metadata Template REST endpoint"
ADD runit.sh /

ADD emc-metalnx-web.war /usr/local/tomcat/webapps/
ADD MetadataTemplateService.jar /
CMD ["/runit.sh"]



# build: docker build -t diceunc/metalnx:latest .

# -v /home/mcc/webdavcert:/tmp/cert

# run: docker run -d --rm -p 8080:8080 -v /etc/irods-ext:/etc/irods-ext -v /home/mcc/webdavcert:/tmp/cert --add-host irods420.irodslocal:172.16.250.101 diceunc/metalnx:latest
# build: docker build -t diceunc/metadata-templates-rest:latest .
4 changes: 2 additions & 2 deletions packaging/docker/runit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ else
echo "No cert to import"
fi

echo "running catalina"
catalina.sh run > /tmp/catalina.out
echo "running app"
java -jar /MetadataTemplateService.jar
13 changes: 10 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
<version>${spring.boot.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<version>${spring.boot.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
<dependency>
<groupId>io.springfox</groupId>
Expand Down Expand Up @@ -217,12 +224,12 @@
<configuration>
<tasks>
<delete
file="${basedir}/src/test/resources/test.rest.properties" />
file="${basedir}/src/test/resources/test.metadatatemplate.properties" />
<touch
file="${basedir}/src/test/resources/test.rest.properties"
file="${basedir}/src/test/resources/test.metadatatemplate.properties"
mkdirs="true" />
<echo
file="${basedir}/src/test/resources/test.rest.properties"
file="${basedir}/src/test/resources/test.metadatatemplate.properties"
append="true">
irods.host=${jargon.test.irods.host}
irods.port=${jargon.test.irods.port}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

0 comments on commit 2480576

Please sign in to comment.