Commit 33073fec authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Introduce Dockerfile.env to run manage.sh commands

Below commands to build and run the docker image:

* docker build -t spotenv -f Dockerfile.env .
* docker run -it --rm  -v $(pwd):/ws -w /ws --network host spotenv bash -c "./manage.sh update_dev_packages; ./manage.sh pep8_check; ./manage.sh unit_tests;"
parent be384621
FROM fedora
RUN dnf install -y\
wget\
python2-pip\
npm\
&& dnf groupinstall -y "Development Tools" \
&& pip install pytest ipdb ipython \
......@@ -110,7 +110,7 @@ tests() {
#
npm_path_setup() {
which npm || (printf 'Error: npm is not found\n'; exit 1)
which npm &>/dev/null || whereis npm &>/dev/null || (printf 'Error: npm is not found\n'; exit 1)
export PATH="$(npm bin)":$PATH
}
......@@ -152,6 +152,7 @@ styles() {
}
grunt_build() {
npm_path_setup
echo '[!] Grunt build : oscar theme'
grunt --gruntfile "$SEARX_DIR/static/themes/oscar/gruntfile.js"
echo '[!] Grunt build : simple theme'
......
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