-
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
73 additions
and
4 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,8 @@ | ||
# RT - Configuration of DependaBot | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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 @@ | ||
name: Push to github container register | ||
|
||
on: | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
push-docker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
tags: | | ||
ghcr.io/rext-dev/rt-backend-beacon |
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,33 @@ | ||
# RT Beacon - Dockerfile | ||
|
||
ARG IMAGE=python | ||
ARG VARIANT=3-slim | ||
FROM ${IMAGE}:${VARIANT} AS build-env | ||
|
||
LABEL "org.rext-dev.rt-backend-beacon.maintainer"="rext-dev" | ||
LABEL "org.rext-dev.rt-backend-beacon.repository"="https://github.com/rext-dev/rt-backend-beacon" | ||
|
||
WORKDIR /tmp/rt | ||
|
||
RUN echo "Updating package repository" && \ | ||
apt update -y && apt -y upgrade | ||
|
||
RUN echo "Preparing neccessary tools..." | ||
RUN apt install -y --no-install-recommends build-essential python3-dev | ||
|
||
RUN echo "Preparing requirements..." | ||
COPY ./requirements.txt . | ||
COPY ./core/rextlib/requirements.txt ./rextlib_requirements.txt | ||
RUN pip3 install --no-cache-dir -U pip setuptools wheel && \ | ||
pip3 install --no-cache-dir -U -r requirements.txt -r rextlib_requirements.txt | ||
|
||
RUN echo "Cleaning..." | ||
RUN cd .. && rm -rf rt | ||
RUN apt remove -y build-essential python3-dev | ||
|
||
RUN echo "Preparing..." | ||
COPY . /usr/local/src | ||
WORKDIR /usr/local/src | ||
RUN rm config.toml &> /dev/null | ||
|
||
ENTRYPOINT ["python3", "-OO", "main.py"] |
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 @@ | ||
ipcs==0.1.* |