fix: switch back to alpine for everything, disable arm 32 docker builds
This commit is contained in:
parent
d47edac376
commit
7ffe9b625e
5 changed files with 14 additions and 48 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
files/
|
||||||
|
Dockerfile
|
||||||
|
docker-manifest.tmpl
|
||||||
|
docker-manifest-unstable.tmpl
|
||||||
|
*.db
|
||||||
|
*.zip
|
32
.drone.yml
32
.drone.yml
|
@ -662,36 +662,6 @@ steps:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- name: docker-arm-unstable
|
|
||||||
image: plugins/docker:linux-arm
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/api
|
|
||||||
tags: unstable-linux-arm
|
|
||||||
depends_on: [ fetch-tags ]
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
|
|
||||||
- name: docker-arm
|
|
||||||
image: plugins/docker:linux-arm
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/api
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-arm
|
|
||||||
depends_on: [ fetch-tags ]
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
|
|
||||||
- name: docker-arm64-unstable
|
- name: docker-arm64-unstable
|
||||||
image: plugins/docker:linux-arm64
|
image: plugins/docker:linux-arm64
|
||||||
|
@ -874,6 +844,6 @@ steps:
|
||||||
- failure
|
- failure
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 9078662aed29b2f5cf1b7a988d5bffb82234710fa790436c38314552930833d2
|
hmac: 24ae934ccafb57159927ab62ba4d00f85490d1330feef264833a6605494b75b2
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
14
Dockerfile
14
Dockerfile
|
@ -17,8 +17,7 @@ RUN if [ -n "${VIKUNJA_VERSION}" ]; then git checkout "${VIKUNJA_VERSION}"; fi \
|
||||||
# The actual image
|
# The actual image
|
||||||
# Note: I wanted to use the scratch image here, but unfortunatly the go-sqlite bindings require cgo and
|
# Note: I wanted to use the scratch image here, but unfortunatly the go-sqlite bindings require cgo and
|
||||||
# because of this, the container would not start when I compiled the image without cgo.
|
# because of this, the container would not start when I compiled the image without cgo.
|
||||||
# We're using debian as a base image here because the latest alpine image does not work with arm.
|
FROM alpine:3.16
|
||||||
FROM debian:buster-slim
|
|
||||||
LABEL maintainer="maintainers@vikunja.io"
|
LABEL maintainer="maintainers@vikunja.io"
|
||||||
|
|
||||||
WORKDIR /app/vikunja/
|
WORKDIR /app/vikunja/
|
||||||
|
@ -28,13 +27,14 @@ ENV VIKUNJA_SERVICE_ROOTPATH=/app/vikunja/
|
||||||
# Dynamic permission changing stuff
|
# Dynamic permission changing stuff
|
||||||
ENV PUID 1000
|
ENV PUID 1000
|
||||||
ENV PGID 1000
|
ENV PGID 1000
|
||||||
RUN addgroup --gid ${PGID} vikunja && \
|
RUN apk --no-cache add shadow && \
|
||||||
chown ${PUID} -R /app/vikunja && \
|
addgroup -g ${PGID} vikunja && \
|
||||||
useradd --shell /bin/sh --gid vikunja --uid ${PUID} --home-dir /app/vikunja vikunja
|
adduser -s /bin/sh -D -G vikunja -u ${PUID} vikunja -h /app/vikunja -H && \
|
||||||
|
chown vikunja -R /app/vikunja
|
||||||
COPY run.sh /run.sh
|
COPY run.sh /run.sh
|
||||||
|
|
||||||
# Fix time zone settings not working
|
# Add time zone data
|
||||||
RUN apt-get update && apt-get install -y tzdata && apt-get clean
|
RUN apk --no-cache add tzdata
|
||||||
|
|
||||||
# Files permissions
|
# Files permissions
|
||||||
RUN mkdir /app/vikunja/files && \
|
RUN mkdir /app/vikunja/files && \
|
||||||
|
|
|
@ -10,8 +10,3 @@ manifests:
|
||||||
platform:
|
platform:
|
||||||
architecture: arm64
|
architecture: arm64
|
||||||
os: linux
|
os: linux
|
||||||
-
|
|
||||||
image: vikunja/api:unstable-linux-arm
|
|
||||||
platform:
|
|
||||||
architecture: arm
|
|
||||||
os: linux
|
|
||||||
|
|
|
@ -16,8 +16,3 @@ manifests:
|
||||||
platform:
|
platform:
|
||||||
architecture: arm64
|
architecture: arm64
|
||||||
os: linux
|
os: linux
|
||||||
-
|
|
||||||
image: vikunja/api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
|
|
||||||
platform:
|
|
||||||
architecture: arm
|
|
||||||
os: linux
|
|
||||||
|
|
Loading…
Reference in a new issue