mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-05 23:20:40 +00:00
fix: dockerize on arm64
The version of dockerize that shipped with the "openedx" image was not compatible with arm64. The original project is unmaintained, but there is a fork that provides a version that is compatible with arm64. This was tested on arm64 with buildx: docker buildx build --tag=openedx --platform=linux/arm64 ~/.local/share/tutor/env/build/openedx Close #591
This commit is contained in:
parent
f13c3db833
commit
a24b29271a
@ -4,6 +4,7 @@ Note: Breaking changes between versions are indicated by "💥".
|
||||
|
||||
## Unreleased
|
||||
|
||||
- [Bugfix] Fix dockerize on arm64 by switching to the [powerman/dockerize](https://github.com/powerman/dockerize) fork (#591).
|
||||
- [Bugfix] Fix "Unexpected args" error during service initialization on Kubernetes (#611).
|
||||
|
||||
## v13.1.6 (2022-03-15)
|
||||
|
@ -23,10 +23,12 @@ RUN $PYENV_ROOT/versions/$PYTHON_VERSION/bin/python -m venv /openedx/venv
|
||||
|
||||
###### Install Dockerize to wait for mysql DB availability
|
||||
FROM minimal as dockerize
|
||||
ARG DOCKERIZE_VERSION=v0.6.1
|
||||
RUN curl -L -o /tmp/dockerize.tar.gz https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& tar -C /usr/local/bin -xzvf /tmp/dockerize.tar.gz \
|
||||
&& rm /tmp/dockerize.tar.gz
|
||||
# https://github.com/powerman/dockerize/releases
|
||||
ARG DOCKERIZE_VERSION=v0.16.0
|
||||
RUN dockerize_url="https://github.com/powerman/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-$(uname -m | sed 's@aarch@arm@')" \
|
||||
&& echo "Downloading dockerize from $dockerize_url" \
|
||||
&& curl --fail --location --output /usr/local/bin/dockerize $dockerize_url \
|
||||
&& chmod a+x /usr/local/bin/dockerize
|
||||
|
||||
###### Checkout edx-platform code
|
||||
FROM minimal as code
|
||||
@ -126,7 +128,7 @@ ARG APP_USER_ID=1000
|
||||
RUN useradd --home-dir /openedx --create-home --shell /bin/bash --uid ${APP_USER_ID} app
|
||||
USER ${APP_USER_ID}
|
||||
|
||||
COPY --chown=app:app --from=dockerize /usr/local/bin/dockerize /usr/local/bin/dockerize
|
||||
COPY --from=dockerize /usr/local/bin/dockerize /usr/local/bin/dockerize
|
||||
COPY --chown=app:app --from=code /openedx/edx-platform /openedx/edx-platform
|
||||
COPY --chown=app:app --from=locales /openedx/locale /openedx/locale
|
||||
COPY --chown=app:app --from=python /opt/pyenv /opt/pyenv
|
||||
|
Loading…
Reference in New Issue
Block a user