mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-16 23:39:54 +03:00
Documented multi-architecture on docker image
This commit is contained in:
parent
2ea58acde2
commit
135b62a9cc
3 changed files with 12 additions and 5 deletions
|
@ -40,6 +40,7 @@ RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS && \
|
|||
docker-php-ext-enable swoole && \
|
||||
apk del .phpize-deps
|
||||
|
||||
|
||||
# Install shlink
|
||||
FROM base as builder
|
||||
COPY . .
|
||||
|
|
|
@ -263,7 +263,13 @@ Once created just run shlink with the volume:
|
|||
docker run --name shlink -p 8080:8080 -v ${PWD}/my/config/dir:/etc/shlink/config/params shlinkio/shlink:stable
|
||||
```
|
||||
|
||||
## Multi instance considerations
|
||||
## Multi-architecture
|
||||
|
||||
Starting on v2.3.0, Shlink's docker image is built for multiple architectures.
|
||||
|
||||
The only limitation is that images for architectures other than `amd64` will not have support for Microsoft SQL databases, since there are no official binaries.
|
||||
|
||||
## Multi-instance considerations
|
||||
|
||||
These are some considerations to take into account when running multiple instances of shlink.
|
||||
|
||||
|
|
|
@ -19,13 +19,13 @@ if [[ ! -z $TRAVIS_TAG ]]; then
|
|||
[[ $TRAVIS_TAG != *"alpha"* && $TRAVIS_TAG != *"beta"* ]] && TAGS="${TAGS} -t shlinkio/shlink:stable"
|
||||
|
||||
docker buildx build --push \
|
||||
--build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \
|
||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
--build-arg SHLINK_VERSION=${TRAVIS_TAG#?} \
|
||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
${TAGS} .
|
||||
|
||||
# If build branch is develop, build latest (on master, when there's no tag, do not build anything)
|
||||
elif [[ "$TRAVIS_BRANCH" == 'develop' ]]; then
|
||||
docker buildx build --push \
|
||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
-t shlinkio/shlink:latest .
|
||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
-t shlinkio/shlink:latest .
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue