Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
facebook
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
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
mautrix
facebook
Commits
74f1a9f4
Unverified
Commit
74f1a9f4
authored
4 years ago
by
Tulir Asokan
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #91 from kubesail/master
add jq / yq, and TARGETARCH to Dockerfile
parents
e2165ef0
042adf8f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
Dockerfile
+8
-1
8 additions, 1 deletion
Dockerfile
with
10 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
2
View file @
74f1a9f4
...
@@ -14,7 +14,7 @@ build amd64:
...
@@ -14,7 +14,7 @@ build amd64:
-
amd64
-
amd64
script
:
script
:
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --pull --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64 .
-
docker build --pull --cache-from $CI_REGISTRY_IMAGE:latest
--build-arg TARGETARCH=amd64
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64 .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64
-
docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64
-
docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64
...
@@ -24,7 +24,7 @@ build arm64:
...
@@ -24,7 +24,7 @@ build arm64:
-
arm64
-
arm64
script
:
script
:
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --pull --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-arm64 .
-
docker build --pull --cache-from $CI_REGISTRY_IMAGE:latest
--build-arg TARGETARCH=arm64
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-arm64 .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-arm64
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-arm64
-
docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-arm64
-
docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-arm64
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
8
−
1
View file @
74f1a9f4
FROM
docker.io/alpine:3.12
FROM
docker.io/alpine:3.12
ARG
TARGETARCH=amd64
RUN
echo
$'
\
RUN
echo
$'
\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/main
\n\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/main
\n\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing
\n\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing
\n\
...
@@ -32,7 +34,12 @@ RUN apk add --no-cache \
...
@@ -32,7 +34,12 @@ RUN apk add --no-cache \
py3-pysocks \
py3-pysocks \
# Other dependencies
# Other dependencies
ca-certificates \
ca-certificates \
su-exec
su-exec \
bash \
curl \
jq && \
curl -sLo yq https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_${TARGETARCH} && \
chmod +x yq && mv yq /usr/bin/yq
COPY
requirements.txt /opt/mautrix-facebook/requirements.txt
COPY
requirements.txt /opt/mautrix-facebook/requirements.txt
COPY
optional-requirements.txt /opt/mautrix-facebook/optional-requirements.txt
COPY
optional-requirements.txt /opt/mautrix-facebook/optional-requirements.txt
...
...
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