Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Readme.md

Outline

Application Docker Image

This directory contains the Dockerfile used to build the Docker image capable of running this application.

It includes a number of helper scripts to be run by the CI/CD pipeline but can also be run locally to build the image.

Building

You can build the docker image locally.

Building from Docker

Use the build-docker.sh script to build the docker image. There are two required arguments that must be set:

  1. service-name: The name of the service being built
  2. service-version: The version of the service being built

This script will then call Docker build which will in turn retrieve the given version of the service from Artifactory and install it into the Docker image. The docker tag of the built image will be returned from the script.

Example:

./docker/build-docker.sh -n podaac-forge -v 0.1.0

Running

The Docker image can be run directly using the docker run command.

Pushing to ECR

The push-docker-ecr.sh script can be used to push a docker image to AWS ECR. There are two required arguments:

  1. tf-venue: The target venue for uploading (sit, uat, or ops).
  2. docker-tag: The docker tage of the image being pushed

The easiest way to use the push-docker-ecr.sh script is to first call build-docker.sh and save the output to the docker_tag environment variable. Then call push-docker-ecr.sh.

Example:

export docker_tag=$(./docker/build-docker.sh -n podaac-forge -v 0.1.0)
./docker/push-docker-ecr.sh -v sit -t $docker_tag
```e the local wheel file, call the `build-docker.sh` script with the optional argument `--local`. This
will cause the docker image to use the local wheel file instead of downloading the software from Artifactory. 
The docker tag of the built image will be returned from the script.

Example:

```shell script
./docker/build-docker.sh -n podaac-forge -v 0.1.0 --local

Running

The Docker image can be run directly using the docker run command.

Pushing to ECR

The push-docker-ecr.sh script can be used to push a docker image to AWS ECR. There are two required arguments:

  1. tf-venue: The target venue for uploading (sit, uat, or ops).
  2. docker-tag: The docker tage of the image being pushed

The easiest way to use the push-docker-ecr.sh script is to first call build-docker.sh and save the output to the docker_tag environment variable. Then call push-docker-ecr.sh.

Example:

export docker_tag=$(./docker/build-docker.sh -n podaac-forge -v 0.1.0)
./docker/push-docker-ecr.sh -v sit -t $docker_tag
Morty Proxy This is a proxified and sanitized view of the page, visit original site.