Coder Social home page Coder Social logo

r3_docker's People

Contributors

howardshand avatar r3-gabriel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

r3_docker's Issues

Feature: DB host during docker run time from entry.sh script

The location of the postgres DB isn't important at the docker build time only at the docker run time. So it makes sense to create a helper script that configures the config to use the DB host given from an Env variable and runs the webserver afterwards and calls it perhaps entry.sh similar to this:

sed -i "s/localhost/${R3_DB_HOST}/g" config_template.json 
/opt/r3/r3 -run -config /opt/r3/data/config.json

The last like of the docker file would look like:

CMD ["entry.sh"]

This way you don't need to rebuild the docker image when the db changed.

Docker Fails

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
Linux tvh2 6.1.0-rpi6-rpi-v8 aarch64 GNU/Linux

`=> ERROR [r3 5/5] RUN tar -xvf REI3_3.2_arm64_linux.tar.gz r3 config_template.json && sed -i "s/localhost/r3_db/g" config_template.json && sed -i "s/443/80/g" co 5.5s '
' [r3 5/5] RUN tar -xvf REI3_3.2_arm64_linux.tar.gz r3 config_template.json && sed -i "s/localhost/r3_db/g" config_template.json && sed -i "s/443/80/g" config_template.json && chmod 755 r3 && chmod 644 config_template.json && rm REI3_3.2_arm64_linux.tar.gz: '
'3.108 3.108 gzip: stdin: not in gzip format 3.110 tar: Child returned status 1 3.112 tar: Error is not recoverable: exiting now'

'failed to solve: process "/bin/sh -c tar -xvf REI3_${r3_version}${r3_os_arch}linux.tar.gz r3 config_template.json \t&& sed -i "s/localhost/${r3_db_host}/g" config_template.json \t&& sed -i "s/443/80/g" config_template.json \t&& chmod 755 r3 && chmod 644 config_template.json \t&& rm REI3${r3_version}${r3_os_arch}_linux.tar.gz" did not complete successfully: exit code: 2`

Test # 2

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
Linux gettech 6.1.0-13-amd64 Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

'=> ERROR [r3 5/5] RUN tar -xvf REI3_3.2_x64_linux.tar.gz r3 config_template.json && sed -i "s/localhost/r3_db/g" config_template.json && sed -i "s/443/80/g" conf 0.3s '

'> [r3 5/5] RUN tar -xvf REI3_3.2_x64_linux.tar.gz r3 config_template.json && sed -i "s/localhost/r3_db/g" config_template.json && sed -i "s/443/80/g" config_template.json && chmod 755 r3 && chmod 644 config_template.json && rm REI3_3.2_x64_linux.tar.gz:
0.248
0.248 gzip: stdin: not in gzip format
0.248 tar: Child returned status 1
0.248 tar: Error is not recoverable: exiting now

failed to solve: process "/bin/sh -c tar -xvf REI3_${r3_version}${r3_os_arch}linux.tar.gz r3 config_template.json \t&& sed -i "s/localhost/${r3_db_host}/g" config_template.json \t&& sed -i "s/443/80/g" config_template.json \t&& chmod 755 r3 && chmod 644 config_template.json \t&& rm REI3${r3_version}${r3_os_arch}_linux.tar.gz" did not complete successfully: exit code: 2'

A separate download wget https://rei3.de/downloads/REI3_3.2_x64_linux.tar.gz
Shows as an html doc type.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.