r3-team / r3_docker Goto Github PK
View Code? Open in Web Editor NEWREI3 dockerfile
License: MIT License
REI3 dockerfile
License: MIT License
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.
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
'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 '
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.