Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSLogic
Commits
af73e198
Commit
af73e198
authored
4 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
First successful Dockerfile!
parent
9c805e17
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+15
-5
15 additions, 5 deletions
Dockerfile
docs/index.md
+6
-0
6 additions, 0 deletions
docs/index.md
pom.xml
+2
-2
2 additions, 2 deletions
pom.xml
with
23 additions
and
7 deletions
Dockerfile
+
15
−
5
View file @
af73e198
# Since we are including resources from the parent folder,
# this Dockerfile has to be executed from the project's parent folder, like this:
# sudo docker build --tag vips/logic:TEST01 -f VIPSLocic/Dockerfile .
# the first stage of our build will use a maven 3.6 parent image
# the first stage of our build will use a maven 3.6 parent image
FROM
maven:3.6-openjdk-11
AS
MAVEN_BUILD
FROM
maven:3.6-openjdk-11
AS
MAVEN_BUILD
# We need VIPSCommon too, so the source code must be available in the parent folder
COPY
./VIPSCommon ./VIPSCommon
RUN
cd
VIPSCommon
&&
mvn clean
install
# copy the pom and src code to the container
# copy the pom and src code to the container
COPY
./ ./
COPY
./
VIPSLogic
./
# package our application code
# package our application code
RUN
mvn clean
install
RUN
mvn clean
install
...
@@ -32,9 +40,10 @@ RUN cd $HOME \
...
@@ -32,9 +40,10 @@ RUN cd $HOME \
# copy only the artifacts we need from the first stage and discard the rest
# copy only the artifacts we need from the first stage and discard the rest
COPY
--from=MAVEN_BUILD /target/VIPSLogic-1.0-SNAPSHOT.war /VIPSLogic-1.0-SNAPSHOT.war
COPY
--from=MAVEN_BUILD /target/VIPSLogic-1.0-SNAPSHOT.war /VIPSLogic-1.0-SNAPSHOT.war
COPY
--from=MAVEN_BUILD /root/.m2 /root/.m2
# Use the sample wildfly_config/standalone.xml, add the correct configs, and copy to the parent folder of the
# Use the sample wildfly_config/standalone.xml, add the correct configs, and copy to the parent folder of the
# VIPSLogic source folder
# VIPSLogic source folder
COPY
.
./standalone.xml ${JBOSS_HOME}/standalone/configuration/standalone.xml
COPY
./standalone.xml ${JBOSS_HOME}/standalone/configuration/standalone.xml
#TODO Download and install the required modules
#TODO Download and install the required modules
# PostgreSQL and PostGIS jdbc drivers
# PostgreSQL and PostGIS jdbc drivers
RUN
mkdir
-p
${
JBOSS_HOME
}
/modules/org/postgresql/main
RUN
mkdir
-p
${
JBOSS_HOME
}
/modules/org/postgresql/main
...
@@ -48,8 +57,9 @@ RUN echo '<?xml version="1.0" encoding="UTF-8"?>\
...
@@ -48,8 +57,9 @@ RUN echo '<?xml version="1.0" encoding="UTF-8"?>\
<module name="javax.api"/>
\
<module name="javax.api"/>
\
<module name="javax.transaction.api"/>
\
<module name="javax.transaction.api"/>
\
</dependencies>
\
</dependencies>
\
</module>'
>
${
JBOSS_HOME
}
/modules/org/postgresql/module.xml
</module>'
>
${
JBOSS_HOME
}
/modules/org/postgresql/main/module.xml
RUN
cp
/root/.m2/repository/org/postgresql/postgresql/42.2.18/postgresql-42.2.18.jar
${
JBOSS_HOME
}
/modules/org/postgresql/main
RUN
cp
/root/.m2/repository/net/postgis/postgis-jdbc/2.2.2/postgis-jdbc-2.2.2.jar
${
JBOSS_HOME
}
/modules/org/postgresql/main
RUN
ln
-s
/VIPSLogic-1.0-SNAPSHOT.war
${
JBOSS_HOME
}
/standalone/deployments/VIPSLogic-1.0-SNAPSHOT.war
RUN
ln
-s
/VIPSLogic-1.0-SNAPSHOT.war
${
JBOSS_HOME
}
/standalone/deployments/VIPSLogic-1.0-SNAPSHOT.war
...
...
This diff is collapsed.
Click to expand it.
docs/index.md
0 → 100644
+
6
−
0
View file @
af73e198
# Building VIPSLogic
## Docker
### Contents of standalone.xml
VIPSLogic is using system properties for instance specific settings. In Wildfly (JBoss), these can be provided
in the standalone.xml file. Examples for this is available in the
`wildfly_config_examples/`
folder.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pom.xml
+
2
−
2
View file @
af73e198
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
<dependency>
<dependency>
<groupId>
net.postgis
</groupId>
<groupId>
net.postgis
</groupId>
<artifactId>
postgis-jdbc
</artifactId>
<artifactId>
postgis-jdbc
</artifactId>
<version>
2.2.
1
</version>
<version>
2.2.
2
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
<dependency>
<dependency>
<groupId>
org.postgresql
</groupId>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
<artifactId>
postgresql
</artifactId>
<version>
9.4.1211
</version>
<version>
42.2.18
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment