Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-socket-proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Container Library
docker-socket-proxy
Commits
e46d26a7
Commit
e46d26a7
authored
Jul 19, 2019
by
ViViDboarder
Committed by
Jairo Llopis
Aug 16, 2019
Browse files
Options
Downloads
Patches
Plain Diff
First stab at multi-arch builds
parent
f16482dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
hooks/build
+33
-0
33 additions, 0 deletions
hooks/build
with
35 additions
and
1 deletion
Dockerfile
+
2
−
1
View file @
e46d26a7
FROM
haproxy:1.9-alpine
ARG
REPO=library
FROM
${REPO}/haproxy:1.9-alpine
EXPOSE
2375
EXPOSE
2375
ENV
ALLOW_RESTARTS=0 \
ENV
ALLOW_RESTARTS=0 \
...
...
This diff is collapsed.
Click to expand it.
hooks/build
+
33
−
0
View file @
e46d26a7
#!/bin/bash
#!/bin/bash
set
-
ex
set
-
ex
# Extract arch repo from a docker tag suffix
REPO
=
""
case
"
$DOCKER_TAG
"
in
*
amd64
)
REPO
=
"
library
"
;;
*
arm32v5
)
REPO
=
"
arm32v5
"
;;
*
arm32v6
)
REPO
=
"
arm32v6
"
;;
*
arm32v7
)
REPO
=
"
arm32v7
"
;;
*
arm64v8
)
REPO
=
"
arm64v8
"
;;
*
i386
)
REPO
=
"
i386
"
;;
*
ppc64le
)
REPO
=
"
ppc64le
"
;;
*
s390x
)
REPO
=
"
s390x
"
;;
*
)
REPO
=
"
library
"
;;
esac
docker
build
\
docker
build
\
--
build
-
arg
REPO
=
"
$REPO
"
\
--
build
-
arg
VCS_REF
=
"
$GIT_SHA1
"
\
--
build
-
arg
VCS_REF
=
"
$GIT_SHA1
"
\
--
build
-
arg
BUILD_DATE
=
"
$(date --rfc-3339 ns)
"
\
--
build
-
arg
BUILD_DATE
=
"
$(date --rfc-3339 ns)
"
\
--
tag
"
$IMAGE_NAME
"
.
--
tag
"
$IMAGE_NAME
"
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment