Added easy support for Spanish version in docker environment
This commit is contained in:
parent
bfea545af6
commit
6d465d8ae8
3 changed files with 14 additions and 2 deletions
|
@ -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"]
|
||||
|
|
|
@ -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
7
tree-ENV_LANG.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
if [ $BASH_TREE_LANG = "ES" ]
|
||||
then
|
||||
./tree-ES.sh
|
||||
else
|
||||
./tree-EN.sh
|
||||
fi
|
Loading…
Reference in a new issue