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

feat: adds a Dockerfile for hortacloud deployment #13

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

yosefmaru
Copy link
Member

Closes #12


RUN git clone https://github.com/JaneliaSciComp/hortacloud/
WORKDIR /hortacloud
ADD .env .
Copy link
Collaborator

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.

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.
Copy link
Collaborator

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.


RUN npm install -g aws-cdk

RUN git clone https://github.com/JaneliaSciComp/hortacloud/
Copy link
Collaborator

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.

@yosefmaru yosefmaru marked this pull request as ready for review January 19, 2024 18:41
@yosefmaru yosefmaru requested a review from jtyoung84 January 19, 2024 18:42
Copy link
Collaborator

@jtyoung84 jtyoung84 left a 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

@jtyoung84 jtyoung84 merged commit bbf6c07 into main Jan 19, 2024
@jtyoung84 jtyoung84 deleted the feat-12-hortacloud branch January 19, 2024 19:16
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.

Create docker image for horta deployment
2 participants