File tree Expand file tree Collapse file tree 20 files changed +285
-0
lines changed Expand file tree Collapse file tree 20 files changed +285
-0
lines changed Original file line number Diff line number Diff line change 1+ pipeline :
2+ docker :
3+ image : plugins/docker
4+ repo : offtechnologies/docker-arm32v6-gitea
5+ registry : docker.io
6+ tags :
7+ - latest
8+ - 9.11.2
9+ secrets : [ docker_username, docker_password ]
Original file line number Diff line number Diff line change 1+ * .DS_Store
2+ .AppleDouble
3+ .LSOverride
4+
5+ # Icon must end with two \r
6+
7+ Icon
8+ # Thumbnails
9+ ._ *
10+
11+ # Files that might appear in the root of a volume
12+ .DocumentRevisions-V100
13+ .fseventsd
14+ .Spotlight-V100
15+ .TemporaryItems
16+ .Trashes
17+ .VolumeIcon.icns
18+ .com.apple.timemachine.donotpresent
19+
20+ # Directories potentially created on remote AFP share
21+ .AppleDB
22+ .AppleDesktop
23+ Network Trash Folder
24+ Temporary Items
25+ .apdisk
26+
27+ .git
Original file line number Diff line number Diff line change 1+ sudo : required
2+ addons :
3+ apt :
4+ packages :
5+ - docker-ce
6+ services :
7+ - docker
8+ language : bash
9+ script :
10+ # prepare qemu
11+ - docker run --rm --privileged multiarch/qemu-user-static:register --reset
12+ # build image
13+ - docker build -t offtechnologies/docker-arm32v6-gitea .
14+ # test image
15+ # - docker run offtechnologies/docker-arm32v6-gitea uname -a
16+ # push image
17+ - >
18+ if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
19+ docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
20+ TAG=$(grep "ARG GITEA_VERSION" Dockerfile | awk -F "=" 'NF>1{print $NF}')
21+ docker tag offtechnologies/docker-arm32v6-gitea offtechnologies/docker-arm32v6-gitea:$TAG
22+ docker push offtechnologies/docker-arm32v6-gitea:$TAG
23+ docker push offtechnologies/docker-arm32v6-gitea
24+ fi
Original file line number Diff line number Diff line change 1+
2+ FROM offtechnologies/docker-arm32v6-base-image-alpine-qemu:latest
3+
4+ ARG GITEA_VERSION=1.3.0
5+
6+ RUN apk -U upgrade \
7+ && apk add --no-cache \
8+ su-exec \
9+ ca-certificates \
10+ sqlite \
11+ bash \
12+ git \
13+ linux-pam \
14+ s6 \
15+ curl \
16+ openssh \
17+ wget \
18+ tzdata && \
19+ addgroup \
20+ -S -g 1000 \
21+ git && \
22+ adduser \
23+ -S -H -D \
24+ -h /data/git \
25+ -s /bin/bash \
26+ -u 1000 \
27+ -G git \
28+ git && \
29+ echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
30+
31+ RUN mkdir -p /app/gitea && \
32+ wget -q -O /app/gitea/gitea https://dl.gitea.io/gitea/${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-arm-6 && \
33+ chmod +x /app/gitea/gitea
34+
35+ ENV USER git
36+ ENV GITEA_CUSTOM /data/gitea
37+ ENV GODEBUG=netdns=go
38+ COPY docker /
39+ EXPOSE 22 3000
40+
41+ VOLUME ["/data" ]
42+
43+ ENTRYPOINT ["/usr/bin/entrypoint" ]
44+ CMD ["/bin/s6-svscan" , "/etc/s6" ]
Original file line number Diff line number Diff line change 1+ # Raspberry Pi 1 Gitea 1.3.0 Docker Image With Alpine Linux
2+
3+ [ ![ Build Status] ( https://travis-ci.org/offtechnologies/docker-arm32v6-gitea.svg?branch=master )] ( travis-ci.org/offtechnologies/docker-arm32v6-gitea )
4+ [ ![ This image on DockerHub] ( https://img.shields.io/docker/pulls/offtechnologies/docker-arm32v6-gitea.svg )] ( https://hub.docker.com/r/offtechnologies/docker-arm32v6-gitea/ )
5+ [ ![ ] ( https://images.microbadger.com/badges/version/offtechnologies/docker-arm32v6-gitea.svg )] ( https://microbadger.com/images/offtechnologies/docker-arm32v6-gitea " Get your own version badge on microbadger.com ")
6+ [ ![ ] ( https://images.microbadger.com/badges/image/offtechnologies/docker-arm32v6-gitea.svg )] ( https://microbadger.com/images/offtechnologies/docker-arm32v6-gitea " Get your own image badge on microbadger.com ")
7+
8+
9+ [ offtechurl ] : https://offtechnologies.gthub.io
10+
11+ [ ![ offtechnologies] ( https://raw.githubusercontent.com/offtechnologies/offtechnologies.github.io/master/logo.png )] [ offtechurl ]
12+
13+ Raspberry Pi 1/0 compatible Docker base image with Alpine Linux and Gitea.
14+
15+ ## Credits
16+ - [ klud1] ( https://github.com/go-gitea/gitea/issues/531#issuecomment-289451101 )
17+
18+ ## 1.0.0 - 2017-12-08
19+ * first release
20+ * Gitea 1.3.0
21+ * Custom base image: Alpine Linux arm32v6 ver 3.7 with qemu-arm-static
22+ * Tested on Raspberry Pi 1 Model B Rev 2 with Raspbian 4.9.51-1+rpi3 (2017-10-22) armv6l GNU/Linux and Docker v17.10.0-ce (It looks Docker 17.11.0 has the problem. sudo apt install docker-ce=17.10.0~ ce-0~ raspbian)
Original file line number Diff line number Diff line change 1+ # /etc/nsswitch.conf
2+
3+ passwd: compat
4+ group: compat
5+ shadow: compat
6+
7+ hosts: files dns
8+ networks: files
9+
10+ protocols: db files
11+ services: db files
12+ ethers: db files
13+ rpc: db files
14+
15+ netgroup: nis
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ export GITEA_CUSTOM=/data/gitea
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ [[ -f ./setup ]] && source ./setup
3+
4+ pushd /app/gitea > /dev/null
5+ exec su-exec git /app/gitea/gitea web
6+ popd
You can’t perform that action at this time.
0 commit comments