-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: adds a Dockerfile for hortacloud deployment #13
Conversation
hortacloud-deployment/Dockerfile
Outdated
|
||
RUN git clone https://github.com/JaneliaSciComp/hortacloud/ | ||
WORKDIR /hortacloud | ||
ADD .env . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to add the .env file in the docker image. We will just copy it into the container once the container starts.
hortacloud-deployment/README.md
Outdated
Refer to hortacloud [deployment instruction](https://hortacloud.janelia.org/docs/administration/aws/deployment/) for detailed steps | ||
### Container setup | ||
- Create a **.env** file that contains all required environment variables. | ||
- Run `docker build .` to build a docker image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can build it with a specific tag instead of looking for the image id after the fact.
hortacloud-deployment/Dockerfile
Outdated
|
||
RUN npm install -g aws-cdk | ||
|
||
RUN git clone https://github.com/JaneliaSciComp/hortacloud/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think David mentioned he'd prefer to have a single Docker environment that can be used to deploy each update rather than building a new image each time. You can add an extra script that runs when a container starts that pulls the .env from s3 and runs this git clone command. Or you can add those steps as instructions in the readme file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably need to update the instructions later
Closes #12