Commit 5ce60a76 authored by Recteur LP's avatar Recteur LP

Fix Build

parent 0bd67cc9
Pipeline #1493 failed with stages
in 2 minutes and 12 seconds
......@@ -30,7 +30,7 @@ RUN dnf install -y 'dnf-command(config-manager)' epel-release \
&& python3 setup.py install \
&& cd /opt \
&& cp /opt/tmp/conf/pyrmin.yml.default /etc/pyrmin/pyrmin.yml \
&& cp /opt/tmp/docker/entrypoint.sh /entrypoint.sh \
&& cp /opt/tmp/container/entrypoint.sh /entrypoint.sh \
&& chmod +rx /entrypoint.sh \
&& chown -R pyrmin /etc/pyrmin /usr/share/pyrmin/plugins /var/log/pyrmin /opt/pyrmin /static \
&& dnf clean all \
......
......@@ -30,7 +30,7 @@ RUN dnf -v -y install \
&& python3 setup.py install \
&& cd /opt \
&& cp /opt/tmp/conf/pyrmin.yml.default /etc/pyrmin/pyrmin.yml \
&& cp /opt/tmp/docker/entrypoint.sh /entrypoint.sh \
&& cp /opt/tmp/container/entrypoint.sh /entrypoint.sh \
&& chmod +rx /entrypoint.sh \
&& chown -R pyrmin /etc/pyrmin /usr/share/pyrmin/plugins /var/log/pyrmin /opt/pyrmin /static \
&& dnf clean all \
......
......@@ -35,7 +35,7 @@ RUN yum -v -y install \
&& python2 setup.py install \
&& cd /opt \
&& cp /opt/tmp/conf/pyrmin.yml.default /etc/pyrmin/pyrmin.yml \
&& cp /opt/tmp/docker/entrypoint.sh /entrypoint.sh \
&& cp /opt/tmp/container/entrypoint.sh /entrypoint.sh \
&& chmod +rx /entrypoint.sh \
&& chown -R pyrmin /etc/pyrmin /usr/share/pyrmin/plugins /var/log/pyrmin /opt/pyrmin /static \
&& yum clean all \
......
......@@ -27,7 +27,7 @@ RUN mkdir -p /etc/pyrmin /usr/share/pyrmin/plugins /var/log/pyrmin /static /opt/
&& /opt/pyrmin/venv-3/bin/pip3 install -q -r /opt/pyrmin/requirements-tests.txt \
&& /opt/pyrmin/venv-3/bin/python3 setup.py develop \
&& cp /opt/pyrmin/conf/pyrmin.yml.default /opt/pyrmin/conf/pyrmin.yml \
&& cp /opt/pyrmin/docker/entrypoint_testing.sh /entrypoint.sh \
&& cp /opt/pyrmin/container/entrypoint_testing.sh /entrypoint.sh \
&& chmod +rx /entrypoint.sh \
&& chown -R pyrmin /etc/pyrmin /usr/share/pyrmin/plugins /var/log/pyrmin /opt/pyrmin /static \
&& npm install grunt-cli -g \
......
......@@ -7,37 +7,37 @@ From Source
git clone https://pyrmin.io/gitlab/PyRmin/PyRmin.git
cd PyRmin
python setup.py install
QuickStart With Docker
QuickStart With Podman
----------------------
With Docker Compose
Pull from docker.io registry
.. code-block:: bash
make
make start
or
or build it
.. code-block:: bash
docker-compose -f docker/docker-compose.yml build
docker-compose -f docker/docker-compose.yml up
make build
make start
Create an alias to use the cli from docker image
Create an alias to use the cli from a container
.. code-block:: bash
alias pyrmin="docker run --rm --entrypoint=/opt/pyrmin/bin/pyrmin pyrmin.io/pyrmin/pyrmin"
alias pyrmin="docker-compose -f $(pwd)/docker/docker-compose.yml run --rm --entrypoint=/opt/pyrmin/bin/pyrmin web"
alias pyrmin="podman -f $(pwd)/container/pyrmin.kube.yml run --rm --entrypoint=/opt/pyrmin/bin/pyrmin"
pyrmin --help
Test
.. code-block:: bash
curl http://localhost:8080
curl http://localhost:8000
QuickStart
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment