-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #360 from spira/feature/docker-structure-update
Feature/docker structure update
- Loading branch information
Showing
16 changed files
with
172 additions
and
224 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,17 @@ | ||
# run `docker build -t spira/spira:latest .` to build this container | ||
# run docker build -t spira/spira:latest -f ./docker/Dockerfile . | ||
|
||
FROM spira/docker-base | ||
FROM busybox:1.24.1 | ||
|
||
MAINTAINER "Zak Henry" <zak.henry@gmail.com> | ||
|
||
# create data dir | ||
RUN mkdir -p /data | ||
|
||
# only add the required data code | ||
COPY api /data/api/ | ||
COPY app/build /data/app/build | ||
COPY forum /data/forum | ||
|
||
# add vhosts for the nginx container | ||
COPY vhosts /data/vhosts/ | ||
|
||
# make sure the logs directory exists | ||
RUN mkdir -p /data/logs | ||
# copy all files to data dir | ||
COPY . /data | ||
|
||
# allow data dir to be mounted as volue | ||
VOLUME /data | ||
|
||
# set the cwd | ||
WORKDIR /data |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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 @@ | ||
# Build configuration. This file is identical to the dev `docker-compose.yml` definition, except it exposes no ports to | ||
# allow multiple concurrent builds without concern of port collision | ||
devtools: | ||
image: spira/docker-dev-tools | ||
working_dir: /data | ||
privileged: true | ||
volumes: | ||
# - /data:/data | ||
- %build_directory%:/data | ||
- %cache_directory%:/cache | ||
env_file: | ||
- .common.env | ||
- .secret.env | ||
- .qa.env |
Oops, something went wrong.