-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Files for building docker image an executing
- Loading branch information
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -400,3 +400,9 @@ rdurable | |
build-no-tests | ||
|
||
beacon/spring/out | ||
|
||
# Eclipse junk | ||
*.classpath | ||
*.settings | ||
*.project | ||
*bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER docker@unicon.net | ||
|
||
RUN apt-get clean \ | ||
&& apt-get -y update \ | ||
&& apt-get install -y curl nano vim java-common python-minimal | ||
|
||
RUN curl -L0 https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.deb --output corretto11.deb | ||
|
||
RUN dpkg --install corretto11.deb \ | ||
&& rm -f corretto11.deb | ||
|
||
COPY includes/ / | ||
|
||
CMD ["/bin/bash", "/runProject.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "3" | ||
|
||
services: | ||
builder: | ||
image: unicon/shibuibuilder:1.0 | ||
# If you want a container to docker exec into for manual operations, comment out the environment RUN_COMMAND | ||
environment: | ||
RUN_COMMAND: 'sh gradlew clean' | ||
volumes: | ||
- ../:/shib-idp-ui | ||
|
||
volumes: | ||
shib-idp-ui: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
if [ "$RUN_COMMAND" != "" ] ; | ||
then | ||
cd shib-idp-ui | ||
cp .gitignore ./FOO.txt | ||
exec $RUN_COMMAND; | ||
else | ||
tail -f /dev/null | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
BUILD IMAGE: docker build --tag unicon/shibuibuilder:1.0 . | ||
|
||
USE: | ||
If you want to simple use the existing version, you should be able to pull the image from the unicon docker hub site. | ||
Otherwise, build the image first using the above command. | ||
|
||
After building, if you wish to simply execute the build command using the docker-compose file in this folder do: | ||
> docker-compose up | ||
|
||
(or add the -d flag to the end if you don't wish to view the build output) | ||
|
||
The container will stop once the gradle build command has completed. | ||
|
||
If you wish to keep the docker container running for use as a build env, comment out the environment section of the | ||
docker-compose file and then start the container and docker exec into the running container to perform whatever build | ||
tasks you desire. | ||
|
||
You can also alter the default "build" target in the docker-compose file as needed. |