Skip to content

Commit 23d5bd9

Browse files
set ecr image tag name and related things
1 parent 1e75063 commit 23d5bd9

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# syntax=docker/dockerfile:1
22

33
# ECR and base image configuration - extracted from CodeBuild environment
4-
ARG ECR_ACCOUNT_ID
5-
ARG ECR_REGION
4+
ARG ECR_ACCOUNT_ID=0123456789012
5+
ARG ECR_REGION=us-east-1
66
ARG BASE_IMAGE_NAME=civis-ubuntu-fips
77
ARG BASE_IMAGE_TAG=22.04
88
ARG ECR_URI=${ECR_ACCOUNT_ID}.dkr.ecr-fips.${ECR_REGION}.amazonaws.com/${BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}

docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
services:
3-
docker-linux-server-ubuntu-fips:
3+
docker-linuxserver-ubuntu-fips:
4+
image: ${ECR_ACCOUNT_ID:-123456789012}.dkr.ecr-fips.us-east-1.amazonaws.com/docker-linuxserver-ubuntu-fips:${IMAGE_TAG:-local}
45
build:
56
context: .
67
dockerfile: Dockerfile
@@ -18,6 +19,6 @@ services:
1819
- ARCH=${ARCH:-amd64}
1920
- ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID}
2021
- ECR_REGION=${ECR_REGION:-us-east-1}
21-
- BASE_IMAGE_NAME=${BASE_IMAGE_NAME}
22+
- BASE_IMAGE_NAME=${BASE_IMAGE_NAME:-ubuntu-fips}
2223
- BASE_IMAGE_TAG=${BASE_IMAGE_TAG:-22.04}
23-
24+
pull_policy: build

0 commit comments

Comments
 (0)