Skip to content

Conversation

@umesh-timalsina
Copy link
Contributor

No description provided.

Copy link
Contributor

@brollb brollb left a comment

Choose a reason for hiding this comment

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

I added a couple comments below

openssl rsa -in deepforge_keys/private_key -pubout > deepforge_keys/public_key
export TOKEN_KEYS_DIR="$(pwd)/deepforge_keys"
Then create file called ``production-docker-compose.yml`` (for using the keys generated above) with the following
Copy link
Contributor

Choose a reason for hiding this comment

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

Putting this file inline is not ideal as it will likely get out-of-date pretty easily. It seems more promising to use something like docker-compose run and specify the env variables there.

server:
entrypoint: /.deployment/dev-entrypoint.sh
environment:
- "NODE_ENV=production"
Copy link
Contributor

Choose a reason for hiding this comment

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

I am guess this is appended so it overrides the earlier NODE_ENV from the other docker-compose file. Is that right?

Copy link
Contributor Author

@umesh-timalsina umesh-timalsina Jul 17, 2020

Choose a reason for hiding this comment

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

Yeah. But it might not be necessary, the only reason I added it was to make quick start easier (without user accounts) with adding NODE_ENV=default in docker/docker-compose.yml. It might not be needed if we use docker-compose run.

 docker-compose --file docker-compose.yml run -p 8888:8888 -p 8889:8889 -e "NODE_ENV=default" server

1. Revert to docker-compose.yml with ${TOKEN_KEYS_DIR} mount
2. Remove NODE_ENV=default from docker-compose.yml and fix key removal
3. Change documentation quickstart with docker using docker-compose run
.. code-block:: bash
docker-compose up
docker-compose --file docker-compose.yml run -v "${TOKEN_KEYS_DIR}:/token_keys" -p 8888:8888 -p 8889:8889 -e "NODE_ENV=production" server
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need -e "NODE_ENV=production" here, do we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we need it.

@umesh-timalsina umesh-timalsina linked an issue Jul 17, 2020 that may be closed by this pull request
2 tasks
@brollb brollb merged commit ffe1500 into master Jul 20, 2020
@brollb brollb deleted the 1780-deployment-reconf branch July 20, 2020 13:41
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.

Reconfigure Deployment

3 participants