Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker environment #7

Merged
merged 5 commits into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Taken from https://github.com/alexkaratarakis/gitattributes/blob/master/LICENSE.md - Copyright (c) 2015 Alexander Karatarakis

# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

#
# The above will handle all files NOT found below
#
# These files are text and should be normalized (Convert crlf => lf)
*.css text
*.df text
*.htm text
*.html text
*.java text
*.js text
*.json text
*.jsp text
*.jspf text
*.jspx text
*.properties text
*.sh text
*.tld text
*.txt text
*.tag text
*.tagx text
*.xml text
*.yml text

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.dll binary
*.ear binary
*.gif binary
*.ico binary
*.jar binary
*.jpg binary
*.jpeg binary
*.png binary
*.so binary
*.war binary
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ At this point, you are ready to perform the actual build with the following comm

```
docker build --tag vulas-build-img -f docker/Dockerfile --build-arg http_proxy= --build-arg https_proxy= .
docker run -it --rm -v $(pwd):/vulas --env-file ./docker/.env vulas-build-img
docker run -it --rm -v ${PWD}:/vulas --env-file ./docker/.env vulas-build-img
```

In case you are running behind a proxy you need to configure it in the `--build-arg` arguments.
Expand Down
5 changes: 4 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ services:
ports:
- "8032:5432"
volumes:
- "./data/postgresql:/var/lib/postgresql/data"
- vulas-os-postgres-data:/var/lib/postgresql/data

rest-backend:
container_name: vulas-os-rest-backend
Expand Down Expand Up @@ -126,3 +126,6 @@ services:
- "8092"
volumes:
- "./data/rest-lib-utils:/root/"

volumes:
vulas-os-postgres-data:
2 changes: 1 addition & 1 deletion docker/rest-backend/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ java \
-Dvulas.jira.pwd=$JIRA_PASSWORD \
$FLYWAY_OPTS \
-Dspring.profiles.active=docker \
-jar /vulas/vulas-backend.jar
-jar /vulas/rest-backend.jar