diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..b528b46 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,37 @@ +name: Docker Image CI + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Print hello + run: echo "Hola Actions" + - name: variable + run: echo "${{ toJSON(github) }}" + build: + needs: test + runs-on: ubuntu-22.04 + container: + image: alexbh/moin:1.9.11-buster + steps: + - name: Print hello + run: echo "Hola Actions" + - name: Code Checkout + uses: actions/checkout@v4 + - name: Testing environment + run: | + cat /etc/os-release + python -V + moin --version + + + + diff --git a/Dockerfile b/Dockerfile index 9bbce76..4057f6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,13 @@ -FROM python:2.7 +#debian 10 +FROM python:2.7-buster +#debian 9 +#FROM python:2.7-stretch +#debian 8 +#FROM python:2.7-jessie -ENV MOINMOIN_VERSION 1.9.10 +ENV MOINMOIN_VERSION 1.9.11 + +RUN apt update && apt -y upgrade # Add user and group for MoinMoin RUN groupadd -r moin && useradd -r -g moin moin @@ -23,7 +30,7 @@ ENV PATH /usr/local/moin/server:$PATH # Install uWSGI RUN set -ex \ - && pip install --no-cache-dir uwsgi + && pip install --no-cache-dir "uwsgi==2.0.20" COPY moin/uwsgi.ini /usr/local/moin/ diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dist/index.js @@ -0,0 +1 @@ + diff --git a/docker-compose.yml b/docker-compose.yml index 731b432..14cf4f1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: moin: - image: takumaw/moinmoin + image: alexbh/moin:1.9.11-buster-updated ports: - "8080:8080" - "3031:3031"