mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Move custom images to separate major component directories
This commit is contained in:
parent
0d1e680ecb
commit
8fff315864
4 changed files with 44 additions and 28 deletions
|
|
@ -268,7 +268,6 @@ function print_kubectl_args() {
|
|||
function parse_arguments() {
|
||||
printf -- "-f Dockerfile.custom "
|
||||
|
||||
|
||||
# Mapping between sources of architectures
|
||||
# - arch: a current image architecture (or uname -m if matching host, but can be different)
|
||||
# - apk --print-arch: a alpine architecture for installed packages
|
||||
|
|
@ -337,14 +336,14 @@ function generate_command() {
|
|||
function build_custom_if_needed() {
|
||||
build_image_path=$(get_image_path)
|
||||
build_image_tag=$(get_image_tag)
|
||||
echo "Building image $build_image_tag"
|
||||
full_image_name="$build_image_path:$build_image_tag"
|
||||
echo "Building image $full_image_name"
|
||||
|
||||
docker_command=$(generate_command $@ --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from="$full_image_name" -t "$full_image_name")
|
||||
echo "Docker command:"
|
||||
printf "\t%s" "$docker_command"
|
||||
eval $docker_command
|
||||
printf "\n\nSUCCESS - Successfully built:\n\t%s" "$build_image_tag"
|
||||
printf "\n\nSUCCESS - Successfully built:\n\t%s" "$full_image_name"
|
||||
}
|
||||
|
||||
build_custom_if_needed $@
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
PATH_TOOLS=()
|
||||
TAG_TOOLS=(DEBIAN RUBY BUNDLER GOLANG GIT LFS CHROME NODE YARN POSTGRESQL GRAPHICSMAGICK PGBOUNCER BAZELISK DOCKER GCLOUD KUBECTL)
|
||||
PATH_TOOLS=(DEBIAN RUBY GOLANG NODE POSTGRESQL)
|
||||
TAG_TOOLS=(BUNDLER GIT LFS CHROME YARN GRAPHICSMAGICK PGBOUNCER BAZELISK DOCKER GCLOUD KUBECTL)
|
||||
|
||||
function get_image_path() {
|
||||
local path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue