-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding documentation for new compound_explorer application
- Loading branch information
1 parent
c106117
commit ac9e3ba
Showing
3 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"WORKBENCH_BUCKET": "env-will-overwrite", | ||
"WORKBENCH_ROLE": "Workbench-ExecutionRole", | ||
"WORKBENCH_PLUGINS": "package", | ||
"WORKBENCH_FEATURES": { | ||
"plugins": "true", | ||
"experimental": "false", | ||
"large_meta_data": "false", | ||
"enterprise": "false" | ||
}, | ||
"WORKBENCH_API_KEY": "eyJsaWNlbnNlX2lkIjogIk9wZW4gU291cmNlIiwgImF3c19hY2NvdW50X2lkIjogbnVsbCwgImZlYXR1cmVzIjogeyJmZWF0dXJlX3NldHMiOiB0cnVlLCAibW9kZWxfbW9uaXRvcmluZyI6IHRydWV9LCAiZXhwaXJlcyI6ICIyMDI1LTAxLTEwIn2QElHhryzF61yIVDi5SgVZIog7L4zR5frdMrv8fncPEgXZjs+pTQkzxCtnvDIB8ZpcPR+1AQ1apyGnTUab6yt3+m4GH11HOZgOmqEl5EhapufmQfI2w6kRn1HSp3HKU+EKzbANqlhTrGnuJnret9YHItD2DlXe7D7hMcrQW4Fh1g==" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Explorer Docker Build and Push | ||
|
||
Notes and information on how to do the Dashboard Docker Builds and Push to AWS ECR. | ||
|
||
### Update Workbench Version | ||
``` | ||
cd applications/compound_explorer | ||
vi Dockerfile | ||
# Install Workbench (changes often) | ||
RUN pip install --no-cache-dir workbench==0.8.90 <-- change this | ||
``` | ||
|
||
### Build the Docker Image | ||
**Note:** For a client specific config file you'll need to copy it locally so that it's within Dockers 'build context'. If you're building the 'vanilla' open source Docker image, then you can use the `open_source_config.json` that's in the directory already. | ||
|
||
``` | ||
docker build --build-arg WORKBENCH_CONFIG=open_source_config.json -t \ | ||
compound_explorer:v0_8_90_amd64 --platform linux/amd64 . | ||
``` | ||
|
||
### Test the Image Locally | ||
You have a `docker_local_dashboard` alias in your `~/.zshrc` :) | ||
|
||
### Login to ECR | ||
``` | ||
aws ecr-public get-login-password --region us-east-1 --profile \ | ||
scp_sandbox_admin | docker login --username AWS \ | ||
--password-stdin public.ecr.aws | ||
``` | ||
### Tag/Push the Image to AWS ECR | ||
``` | ||
docker tag compound_explorer:v0_8_90_amd64 \ | ||
public.ecr.aws/m6i5k1r2/compound_explorer:v0_8_90_amd64 | ||
``` | ||
``` | ||
docker push public.ecr.aws/m6i5k1r2/compound_explorer:v0_8_90_amd64 | ||
``` | ||
|
||
### Update the 'latest' tag | ||
``` | ||
docker tag public.ecr.aws/m6i5k1r2/compound_explorer:v0_8_90_amd64 \ | ||
public.ecr.aws/m6i5k1r2/compound_explorer:latest | ||
``` | ||
``` | ||
docker push public.ecr.aws/m6i5k1r2/compound_explorer:latest | ||
``` | ||
|
||
### Update the 'stable' tag | ||
This is obviously only when you want to mark a version as stable. Meaning that it seems to 'be good and stable (ish)' :) | ||
|
||
``` | ||
docker tag public.ecr.aws/m6i5k1r2/compound_explorer:v0_8_90_amd64 \ | ||
public.ecr.aws/m6i5k1r2/compound_explorer:stable | ||
``` | ||
``` | ||
docker push public.ecr.aws/m6i5k1r2/workbench_dashboard:stable | ||
``` | ||
|
||
### Test the ECR Image | ||
You have a `docker_ecr_dashboard` alias in your `~/.zshrc` :) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters