-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.git | ||
.github | ||
|
||
Dockerfile | ||
cache.json | ||
settings.json | ||
run.sh | ||
|
||
logs | ||
supplementary | ||
tmp | ||
|
||
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,25 @@ | ||
name: Autobuild for Docker | ||
|
||
on: | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install builder plugin | ||
id: buildx | ||
uses: crazy-max/ghaction-docker-buildx@v3 | ||
with: | ||
buildx-version: latest | ||
qemu-version: latest | ||
- name: Login to Docker | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
- name: Build the image | ||
run: | | ||
docker buildx build --push \ | ||
--tag "${{secrets.DOCKER_TAG}}" \ | ||
--platform linux/amd64,linux/arm/v7 . |
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,28 @@ | ||
FROM python:rc-alpine | ||
|
||
ENV SHELL /bin/sh | ||
ENV LANG C.UTF-8 | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV PIP_DISABLE_PIP_VERSION_CHECK 1 | ||
ENV PIP_NO_CACHE_DIR 0 | ||
|
||
COPY . /srv | ||
WORKDIR /srv | ||
|
||
RUN \ | ||
# Create user | ||
addgroup -g 423 -S pkgcollector \ | ||
&& adduser -u 423 -S pkgcollector -G pkgcollector \ | ||
# Upgrade system | ||
&& apk update \ | ||
&& apk upgrade --no-cache \ | ||
&& apk add --no-cache dpkg gnupg gzip fakeroot xz tar \ | ||
# Install Python dependencies | ||
&& pip install --no-cache --upgrade -r requirements.txt \ | ||
&& chown -R pkgcollector:pkgcollector . \ | ||
# Cleanup | ||
&& rm -rf /tmp/* /var/cache/apk/* | ||
|
||
USER pkgcollector | ||
ENTRYPOINT ["python", "-m", "pkgcollector.Main"] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
bs4 | ||
beautifulsoup4 | ||
deb-pkg-tools | ||
python-gnupg | ||
requests |