Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: remove Makefile and update Docker build steps (#6980)
- Loading branch information
Showing
8 changed files
with
60 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
set -xe | ||
|
||
# Install gosu | ||
if [ "$(uname -m)" = "aarch64" ]; then | ||
export arch='arm64' | ||
export checksum='73244a858f5514a927a0f2510d533b4b57169b64d2aa3f9d98d92a7a7df80cea' | ||
elif [ "$(uname -m)" = "armv7l" ]; then | ||
export arch='armhf' | ||
export checksum='abb1489357358b443789571d52b5410258ddaca525ee7ac3ba0dd91d34484589' | ||
else | ||
export arch='amd64' | ||
export checksum='bd8be776e97ec2b911190a82d9ab3fa6c013ae6d3121eea3d0bfd5c82a0eaf8c' | ||
fi | ||
|
||
wget --quiet https://github.com/tianon/gosu/releases/download/1.14/gosu-${arch} -O /usr/sbin/gosu | ||
echo "${checksum} /usr/sbin/gosu" | sha256sum -cs | ||
chmod +x /usr/sbin/gosu | ||
|
||
# Create git user for Gogs | ||
addgroup -S git | ||
adduser -G git -H -D -g 'Gogs Git User' git -h /data/git -s /bin/bash && usermod -p '*' git && passwd -u git | ||
echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile | ||
|
||
# Final cleaning | ||
rm -rf /app/gogs/build | ||
rm -rf /app/gogs/docker/build | ||
rm /app/gogs/docker/nsswitch.conf | ||
rm /app/gogs/docker/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
set -xe | ||
|
||
if [ "$(uname -m)" = "aarch64" ]; then | ||
export arch='arm64' | ||
export checksum='44fad3d61ad39d0abff33f90fdbb99a666524dbeab08dc9d138d5d3a532ff68a' | ||
elif [ "$(uname -m)" = "armv7l" ]; then | ||
export arch='arm' | ||
export checksum='b10ae7d85749025740097b0c349b946fbabd417c7ee4d2df8ccc5604750accd9' | ||
else | ||
export arch='amd64' | ||
export checksum='b9c5986f33a53094751b5e22ccc33e050b4a0a485658442121331cbb724e631e' | ||
fi | ||
|
||
wget --quiet https://github.com/go-task/task/releases/download/v3.12.1/task_linux_${arch}.tar.gz -O task_linux_${arch}.tar.gz | ||
echo "${checksum} task_linux_${arch}.tar.gz" | sha256sum -cs | ||
|
||
tar -xzf task_linux_${arch}.tar.gz | ||
mv task /usr/local/bin/task |
This file was deleted.
Oops, something went wrong.