Skip to content

Commit

Permalink
update build file
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoscoe committed Aug 14, 2024
1 parent 9bf96d7 commit ae46ea2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions custom_dc/build_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ If you want to create a new source directory and start from scratch, clone the r
Run the following command to build the repo:

<pre>
docker build --tag datacommons-services:<var>DOCKER_TAG</var> \
-f build/web_compose/Dockerfile \
docker build --tag <var>IMAGE_NAME</var>:<var>DOCKER_TAG</var> \
-f build/cdc_services/Dockerfile \
-t services .
</pre>

The _DOCKER_TAG_ is a meaningful description of the version you are building.
- The _IMAGE_NAME_ is a meaningful name for the build, such as `datacommons-services`.
- The _DOCKER_TAG_ is a meaningful description of the version you are building, such as `latest`.

It will take several minutes to build.

Expand All @@ -149,5 +150,5 @@ docker run -it \
-v <var>OUTPUT_DIRECTORY</var>:<var>OUTPUT_DIRECTORY</var> \
[-v $PWD/server/templates/custom_dc/custom:/workspace/server/templates/custom_dc/custom \]
[-v $PWD/static/custom_dc/custom:/workspace/static/custom_dc/custom \]
datacommons-services:<var>DOCKER_TAG</var>
<var>IMAGE_NAME</var>:<var>DOCKER_TAG</var>
</pre>
2 changes: 1 addition & 1 deletion custom_dc/deploy_cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ This procedure creates a "dev" Docker package that you upload to the Google Clou
</pre>

- The `_ARTIFACT_REPO`_ must be an Artifact Registry repository you have created previously.
- The `_IMAGE_NAME`_ may be the same as the source (`datacommons-services`) or any other string.
- The `_IMAGE_NAME`_ may be the same as the source (e.g. `datacommons-services`) or any other string.
- The _`TARGET_IMAGE_TAG`_ can be the same as the source, or any other string.

1. Push the image to the registry:
Expand Down

0 comments on commit ae46ea2

Please sign in to comment.