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

WIP: Docker GCIS #555

Merged
merged 14 commits into from
Aug 14, 2017
Merged

WIP: Docker GCIS #555

merged 14 commits into from
Aug 14, 2017

Conversation

lomky
Copy link
Collaborator

@lomky lomky commented Aug 11, 2017

Continuation of PR #478

@coveralls
Copy link

Coverage Status

Coverage remained the same at 61.579% when pulling c027b5b on docker into 57fc954 on master.

@lomky
Copy link
Collaborator Author

lomky commented Aug 11, 2017

Added POSTGRES_DB to the postgres environment section of the docker-compose - postgres is now starting up nicely. gcisops starts up and then dies due to an empty gcis database instead of no gcis database. Progress!

Next step. run docker-compose up postgres, connect via docker exec -it gcisdocker_postgres_1 psql -d gcis -U gcisops and populate a public content release.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 61.579% when pulling 7af1e91 on docker into 57fc954 on master.

Tuba.conf is now set only as a volume in the docker compose.
Tuba.conf is now sourced from a docker specific sample conf.
gcis image is not tagged as latest instead of small.
postgres compose now sources db init from db/docker
Tuba.pm logs its version on startup
@lomky
Copy link
Collaborator Author

lomky commented Aug 11, 2017

Everything seems to be working!

Going to install from scratch on another machine to test.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 61.586% when pulling dcadd37 on docker into 57fc954 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 61.586% when pulling dcadd37 on docker into 57fc954 on master.

@lomky lomky mentioned this pull request Aug 11, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 61.586% when pulling b7ff231 on docker into 57fc954 on master.

1. the `content_2` file should be moved to `./db/docker/4_content_2.sql`
- if you want an empty GCIS instance, only copy the schema & content 1.
1. run `docker-compose up postgres`
- Refresh your tea.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

;-)

1. Setup postgres *alone* first
1. Download the latest [public content release](https://github.com/USGCRP/gcis/releases)
1. Untar the files
1. the `schema` file should be moved to `./db/docker/2_schema.sql`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a future release, consider handling this in the gcis container's entrypoint.sh. Basically, have it check for an empty database when it comes up and then psql schema content_1 content_2 from a bind mount into the database.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #557, to avoid forgetting.

@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume these are self-signed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Just exists to test the https protocol. Throws a lovely "this is self signed!1!!1" in both Chrome and Firefox but gets the job done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants