Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Adjust snapshot branch to build distribution Docker image (#88)
Browse files Browse the repository at this point in the history
This adds a Dockerfile to the package-storage branch based on which a distribution of the package-registry with packages is built.
  • Loading branch information
ruflin authored Jun 29, 2020
1 parent e458eb0 commit 62b612b
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 615 deletions.
2 changes: 2 additions & 0 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pipeline {
DOCKER_REGISTRY_SECRET = 'secret/observability-team/ci/docker-registry/prod'
PIPELINE_LOG_LEVEL='INFO'
GO_VERSION = '1.13.12'
DOCKER_IMG = "${env.DOCKER_REGISTRY}/package-registry/distribution"
DOCKER_IMG_PR = "${env.DOCKER_REGISTRY}/observability-ci/package-registry/distribution"
}
options {
timeout(time: 1, unit: 'HOURS')
Expand Down
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
build
testing
vendor
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Here the version of the registry is specified this storage branch uses.
# It should always be a specific version to make sure builds are reproducible.
ARG PACKAGE_REGISTRY=57d417a84fa038cfb50a0cd661372c194199b3fd
FROM docker.elastic.co/package-registry/package-registry:${PACKAGE_REGISTRY}

LABEL package-registry=${PACKAGE_REGISTRY}

# Adds specific config and packages
COPY deployment/package-registry.yml /registry/config.yml
COPY packages /packages

# TODO: Find way to also copy in packages from staging and production

# Sanity check on the packages. If packages are not valid, container does not even build.
RUN ./package-registry -dry-run
6 changes: 6 additions & 0 deletions deployment/package-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package_paths:
- /packages

cache_time.search: 10s
cache_time.categories: 10s
cache_time.catch_all: 10s
3 changes: 0 additions & 3 deletions packages/base/0.1.0/docs/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 62b612b

Please sign in to comment.