ampproject / ampproject/amppackager

streamline docker build

Open
#187 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
141
Forks
46
PR merge metrics
No merged PRs in 30d

Description

To use docker currently:

1. install amp packager from github
2. build docker image (which in turn installs amp packager from github again within the container)

Effectively, the amp packager is fetched twice. Can streamline this in 2 different ways:

1. Use COPY to copy in the amppackager code from local into container (instead of RUN go get)
2. Build and upload docker image into registry where developers can grab it.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the Docker build configuration and the current RUN go get step to understand where the amppackager is fetched locally and inside the container. Decide whether the intended outcome is copying local amppackager code or publishing an image to a registry, then verify that the Docker build no longer fetches the package twice.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, devops
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.