Added easy support for Spanish version in docker environment

This commit is contained in:
Lewis Sparlin 2018-12-05 08:58:05 -06:00
parent bfea545af6
commit 6d465d8ae8
3 changed files with 14 additions and 2 deletions

View file

@ -1,5 +1,5 @@
FROM alpine:latest
COPY tree-EN.sh /tree-EN.sh
COPY tree-EN.sh tree-ES.sh tree-ENV_LANG.sh /
RUN apk add --update ncurses bash
ENV TERM=xterm-256color
CMD ["bash","/tree-EN.sh"]
CMD ["bash","/tree-ENV_LANG.sh"]

View file

@ -30,7 +30,12 @@ Docker:
```
docker pull sergiolepore/christbashtree:latest
# English Version
docker run -it sergiolepore/christbashtree:latest
# Spanish Version
docker run -it -e BASH_TREE_LANG=ES sergiolepore/christbashtree:latest
```
Git clone and execute:

7
tree-ENV_LANG.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
if [ $BASH_TREE_LANG = "ES" ]
then
./tree-ES.sh
else
./tree-EN.sh
fi