aws-samples / aws-samples/amazon-ecs-fargate-workshop-dev-ops-data

Docker Build Fails

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
21
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Docker build deploy file installation phase is unable to install updates
https://github.com/aws-samples/amazon-ecs-fargate-workshop-dev-ops-data/blob/master/labs/fargate-dev-workshop/configs/docker_build_deploy.yml

` commands:

- apt-get update

- apt-get install -y jq

- npm install -g npm@6.4.1
`
Error states signature was invalid. I am using AWS code Build
Fix:
Add below to refresh signatue
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
`
commands:

- echo 'start apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com'

- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- apt-get update
- apt-get install -y jq

`

Contributor guide

Open the contributing guide

Research direction

Start with configs/docker_build_deploy.yml and inspect the Docker build commands shown in the issue, especially the apt-get update and package installation phase. Reproduce or review the failure in AWS CodeBuild, then verify that the signing-key refresh allows the update and jq installation to complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, node.js
Domain
build-system, cloud, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.