Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from calvinmclean/images
Browse files Browse the repository at this point in the history
Use Dockerhub images instead of local build
  • Loading branch information
Calvin McLean authored May 13, 2019
2 parents 2453ffd + 51ae345 commit 4a971bf
Show file tree
Hide file tree
Showing 32 changed files with 188 additions and 1,248 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: python

services:
- docker

env:
- GUAC_ARG='-f docker-compose.yml -f docker-compose.guac.yml' ATMO_TEST_ARG='-f docker-compose.atmo-test.yml' TROPO_TEST_ARG='-f docker-compose.tropo-test.yml'

before_install:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose pull
- docker-compose ${ATMO_TEST_ARG} pull
- docker-compose ${TROPO_TEST_ARG} pull

script:
- docker-compose config
- docker-compose ${GUAC_ARG} config
- docker-compose ${ATMO_TEST_ARG} config
- docker-compose ${TROPO_TEST_ARG} config
- docker-compose build
- docker-compose ${ATMO_TEST_ARG} up --exit-code-from atmosphere
- docker-compose ${ATMO_TEST_ARG} rm -f
- docker-compose ${TROPO_TEST_ARG} up --exit-code-from troposphere
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ Entire Atmosphere development environment in Docker Containers using Docker-Comp
- Alternatively, modify the docker-compose file to point to your local repositories with either relative or absolute paths


2. `docker-compose build` to build all containers. This step will take a while the first time it is run, but will be quicker after that
2. `docker-compose pull` to pull all containers
- To populate with an existing database, copy the `.sql` file to the `postgres` directory before building


3. Clone the `atmosphere-docker-secrets` repository in the same directory as this repository (not inside this repository directory)
- Checkout branch with the correct variables for your environment
- Change `MOCK_USER` variable in `atmosphere.ini` and `troposphere.ini` to your username if using 'local' variables
- Use the script `mock_user.sh <your_cyverse_username>` to change `MOCK_USER` variable in `atmosphere.ini` and `troposphere.ini` to your username if using 'local' variables branch


4. `docker-compose up` to start all containers (use the `-d` option to run containers in the background)
- The container's entrypoint will automatically read a variable from the `env` file in `atmosphere-docker-secrets` to determine if running a production or development environment
- If you are using a local development version and want Guacamole also, replace the `docker-compose` part of all commands with: `docker-compose -f docker-compose.yml -f docker-compose.guac.yml`
- If using local development version:
- **IMPORTANT**: If you are using Linux and want to maintain ownership of your local repositories, edit the `command` lines in `docker-compose.yml` with your user id (use `id -u` to get this). User ID `1000` is the default
- Your containers should be ready when you see `webpack: Compiled successfully.` from Troposphere and `Starting Django Python...` from Atmosphere
- Access Atmosphere in your browser at `localhost`
- Troposphere and Atmosphere changes will be automatically built
Expand Down
75 changes: 0 additions & 75 deletions atmosphere/Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions atmosphere/README.md

This file was deleted.

165 changes: 0 additions & 165 deletions atmosphere/celerybeat.initd

This file was deleted.

Loading

0 comments on commit 4a971bf

Please sign in to comment.