Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading

Dockerfile.env

0 → 100644
+8 −0
Original line number Diff line number Diff line
FROM fedora

RUN dnf install -y\
 wget\
 python2-pip\
 npm\
&& dnf groupinstall -y "Development Tools" \
&& pip install pytest ipdb ipython \
+2 −1
Original line number Diff line number Diff line
@@ -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'