Compare commits
5 commits
dbeec69a74
...
019b402c44
Author | SHA1 | Date | |
---|---|---|---|
Aode (Lion) | 019b402c44 | ||
Aode (Lion) | 4a664b6e30 | ||
Aode (Lion) | 8a284bbe63 | ||
Aode (Lion) | d96cd46987 | ||
Aode (Lion) | 30bf6d514e |
|
@ -42,7 +42,7 @@ RUN mkdir -p /opt/mastodon/.config/yarn/global && \
|
|||
gem install bundler:1.17.2 && \
|
||||
bundle config set deployment 'true' && \
|
||||
bundle install -j$(nproc) --without development test --with production && \
|
||||
yarn install --pure-lockfile
|
||||
yarn install --pure-lockfile --network-timeout=30000
|
||||
|
||||
# Compile assets
|
||||
RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder \
|
||||
|
|
3
mastodon/root/usr/bin/mastodon-accounts-refresh
Executable file
3
mastodon/root/usr/bin/mastodon-accounts-refresh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
bundle exec bin/tootctl accounts refresh --all
|
|
@ -1,6 +1,6 @@
|
|||
FROM linuxserver/nextcloud:BASE_TAG
|
||||
|
||||
ADD https://github.com/nextcloud/notify_push/releases/download/v0.2.0/notify_push-aarch64-unknown-linux-musl /usr/local/bin/notify_push
|
||||
ADD https://github.com/nextcloud/notify_push/releases/download/v0.2.4/notify_push-aarch64-unknown-linux-musl /usr/local/bin/notify_push
|
||||
RUN chmod +x /usr/local/bin/notify_push
|
||||
|
||||
COPY root/ /
|
||||
|
|
6
nextcloud/Dockerfile.arm64v8.php8-22.1.1.ls153
Normal file
6
nextcloud/Dockerfile.arm64v8.php8-22.1.1.ls153
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM linuxserver/nextcloud:arm64v8-php8-22.1.1-ls153
|
||||
|
||||
ADD https://github.com/nextcloud/notify_push/releases/download/v0.2.4/notify_push-aarch64-unknown-linux-musl /usr/local/bin/notify_push
|
||||
RUN chmod +x /usr/local/bin/notify_push
|
||||
|
||||
COPY root/ /
|
|
@ -29,7 +29,7 @@ function build_image() {
|
|||
sed "s/BASE_TAG/${ARCH}-${NEXTCLOUD_RELEASE}-${VERSION}/g" "Dockerfile.${ARCH}" \
|
||||
> "Dockerfile.${ARCH}.${NEXTCLOUD_RELEASE}.${VERSION}"
|
||||
|
||||
docker build \
|
||||
sudo docker build \
|
||||
--pull \
|
||||
--no-cache \
|
||||
-f "Dockerfile.${ARCH}.${NEXTCLOUD_RELEASE}.${VERSION}" \
|
||||
|
@ -38,9 +38,9 @@ function build_image() {
|
|||
-t "${IMAGE}:latest" \
|
||||
.
|
||||
|
||||
docker push "${IMAGE}:${NEXTCLOUD_RELEASE}-${VERSION}-${ARCH}"
|
||||
docker push "${IMAGE}:latest-${ARCH}"
|
||||
docker push "${IMAGE}:latest"
|
||||
sudo docker push "${IMAGE}:${NEXTCLOUD_RELEASE}-${VERSION}-${ARCH}"
|
||||
sudo docker push "${IMAGE}:latest-${ARCH}"
|
||||
sudo docker push "${IMAGE}:latest"
|
||||
|
||||
rm "Dockerfile.${ARCH}.${NEXTCLOUD_RELEASE}.${VERSION}"
|
||||
}
|
||||
|
@ -48,6 +48,11 @@ function build_image() {
|
|||
require "$VERSION" "version"
|
||||
require "$NEXTCLOUD_RELEASE" "nextcloud release"
|
||||
|
||||
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
|
||||
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
fi
|
||||
|
||||
set -xe
|
||||
|
||||
build_image asonix/nextcloud arm64v8
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Using Alpine to keep the images smaller
|
||||
FROM arm64v8/alpine:latest
|
||||
FROM arm64v8/node:alpine
|
||||
|
||||
ARG TAG
|
||||
ARG VERSION
|
||||
|
@ -13,19 +13,11 @@ RUN tar zxf v$TAG.tar.gz \
|
|||
&& mv pinafore-$TAG/* . \
|
||||
&& rm -rf pinafore-$TAG
|
||||
|
||||
# Install updates and NodeJS+Dependencies
|
||||
RUN apk add --update --no-cache --virtual build-dependencies git python3 build-base clang \
|
||||
# Install updates and NodeJS+Dependencies
|
||||
&& apk add --update --no-cache nodejs npm \
|
||||
# Install yarn
|
||||
&& npm i yarn -g \
|
||||
# Install Pinafore
|
||||
&& yarn --production --pure-lockfile \
|
||||
&& yarn build \
|
||||
RUN yarn --production --pure-lockfile --network-timeout=30000 \
|
||||
&& yarn build --network-timeout=30000 \
|
||||
&& yarn cache clean \
|
||||
&& rm -rf ./src \
|
||||
# Cleanup
|
||||
&& apk del build-dependencies
|
||||
&& rm -rf ./src ./docs ./tests ./bin
|
||||
|
||||
# Expose port 4002
|
||||
EXPOSE 4002
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM vectorim/riot-web:VERSION as builder
|
||||
FROM vectorim/element-web:VERSION as builder
|
||||
|
||||
FROM arm64v8/nginx:mainline-alpine
|
||||
|
||||
|
|
19
riot/Dockerfile.v1.8.1-r0
Normal file
19
riot/Dockerfile.v1.8.1-r0
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM vectorim/element-web:v1.8.1-r0 as builder
|
||||
|
||||
FROM arm64v8/nginx:mainline-alpine
|
||||
|
||||
RUN apk add tini
|
||||
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
|
||||
|
||||
COPY --from=builder /app /app
|
||||
COPY init.sh /usr/local/bin/init.sh
|
||||
|
||||
RUN set -xe; \
|
||||
rm -rf /usr/share/nginx/html; \
|
||||
ln -s /app /usr/share/nginx/html; \
|
||||
mkdir /etc/riot-web
|
||||
|
||||
VOLUME /etc/riot-web
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
CMD ["init.sh", "nginx", "-g", "daemon off;"]
|
|
@ -22,7 +22,7 @@ function print_help() {
|
|||
|
||||
require "$TAG" tag
|
||||
|
||||
if ! docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
|
||||
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
fi
|
||||
|
@ -31,7 +31,7 @@ set -xe
|
|||
|
||||
sed "s/VERSION/$TAG/g" Dockerfile > "Dockerfile.$TAG"
|
||||
|
||||
docker build \
|
||||
sudo docker build \
|
||||
--pull \
|
||||
--no-cache \
|
||||
-f "Dockerfile.$TAG" \
|
||||
|
@ -40,8 +40,8 @@ docker build \
|
|||
-t asonix/riot-web:latest \
|
||||
.
|
||||
|
||||
docker push "asonix/riot-web:$TAG-arm64v8"
|
||||
docker push asonix/riot-web:latest-arm64v8
|
||||
docker push asonix/riot-web:latest
|
||||
sudo docker push "asonix/riot-web:$TAG-arm64v8"
|
||||
sudo docker push asonix/riot-web:latest-arm64v8
|
||||
sudo docker push asonix/riot-web:latest
|
||||
|
||||
rm "Dockerfile.$TAG"
|
||||
|
|
|
@ -22,14 +22,14 @@ function print_help() {
|
|||
|
||||
require "$TAG" tag
|
||||
|
||||
if ! docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
|
||||
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
fi
|
||||
|
||||
set -xe
|
||||
|
||||
docker build \
|
||||
sudo docker build \
|
||||
--pull \
|
||||
--no-cache \
|
||||
-f Dockerfile \
|
||||
|
@ -38,6 +38,6 @@ docker build \
|
|||
-t asonix/synapse:latest \
|
||||
.
|
||||
|
||||
docker push "asonix/synapse:$TAG-arm64v8"
|
||||
docker push asonix/synapse:latest-arm64v8
|
||||
docker push asonix/synapse:latest
|
||||
sudo docker push "asonix/synapse:$TAG-arm64v8"
|
||||
sudo docker push asonix/synapse:latest-arm64v8
|
||||
sudo docker push asonix/synapse:latest
|
||||
|
|
Loading…
Reference in a new issue