Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add note to building locally about skopeo #3074

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion docs/development/building-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To force running targets on the host: `export FORCE_GO_BUILD_ON_HOST=true`.
* Docker
* `sudo yum install -y docker && sudo usermod -a -G docker ec2-user && id ec2-user && newgrp docker`
* `sudo systemctl enable docker.service && sudo systemctl start docker.service`
* Common utils required git
* Common utils required
* `sudo yum -y install bc jq git-core make lz4 rsync`
* `yq` is required by a number of targets
* `sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$([ "x86_64" = "$(uname -m)" ] && echo amd64 || echo arm64) && sudo chmod +x /usr/local/bin/yq`
Expand Down Expand Up @@ -85,6 +85,30 @@ Each project folder contains a Makefile with the following build targets.
* `export BUILDKIT_HOST=docker-container://buildkitd`
* `make stop-buildkit-and-registry` to cleanup
* See [docker-auth.md](./docker-auth.md) for helpful tips for configuring, securing, and using your AWS credentials with the targets in this project.
* The following is a basic docker config for ecr-helper:
* `~/.docker/config.json`
```
{
"auths": {},
"credsStore": "ecr-login"
}

```
* If building packages with helm charts, skopeo auth has to be setup. The following is a basic skopeo config for ecr-helper:
* ` ~/.config/containers/registries.conf`
```
credential-helpers = ["ecr-login"]
```
* `~/.config/containers/policy.json`
```
{
"default": [
{
"type": "insecureAcceptAnything"
}
]
}
```
* By default, `IMAGE_REPO` will be set to your AWS account's private ECR registry based on your AWS_REGION. If you want to create the neccessary registeries
for the current project:
* `make create-ecr-repos`
Expand Down