Skip to content

Commit

Permalink
Merge pull request #45 from joao-zanutto/patch-8
Browse files Browse the repository at this point in the history
adjust dockerfile
  • Loading branch information
wwoytenko authored Apr 2, 2024
2 parents 7ea7185 + ee587fd commit 6086457
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
15 changes: 11 additions & 4 deletions docker/greenmask/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ RUN apt-get update \

COPY --from=build /var/lib/greenmask/greenmask /usr/bin

RUN mkdir /home/greenmask \
&& groupadd -g 10001 greenmask \
&& useradd -u 10000 -g greenmask greenmask \
&& chown -R greenmask:greenmask /home/greenmask

USER greenmask:greenmask

RUN mkdir ~/.bash_completions \
&& greenmask completion bash > /root/.bash_completions/greenmask.bash \
&& echo 'source /etc/bash_completion' >> /root/.bashrc \
&& echo 'source /root/.bash_completions/greenmask.bash' >> /root/.bashrc
&& greenmask completion bash > ~/.bash_completions/greenmask.bash \
&& echo 'source /etc/bash_completion' >> ~/.bashrc \
&& echo 'source ~/.bash_completions/greenmask.bash' >> ~/.bashrc

ENTRYPOINT ["/bin/bash"]
ENTRYPOINT ["greenmask"]
8 changes: 4 additions & 4 deletions playground/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
echo "alias psql='psql -U postgres -d $ORIGINAL_DB_NAME -h playground-db'" >> /root/.bashrc
echo "alias psql_o='psql -U postgres -d $ORIGINAL_DB_NAME -h playground-db'" >> /root/.bashrc
echo "alias psql_t='psql -U postgres -d $TRANSFORMED_DB_NAME -h playground-db'" >> /root/.bashrc
echo "alias cleanup='/var/lib/playground/cleanup.sh'" >> /root/.bashrc
echo "alias psql='psql -U postgres -d $ORIGINAL_DB_NAME -h playground-db'" >> ~/.bashrc
echo "alias psql_o='psql -U postgres -d $ORIGINAL_DB_NAME -h playground-db'" >> ~/.bashrc
echo "alias psql_t='psql -U postgres -d $TRANSFORMED_DB_NAME -h playground-db'" >> ~/.bashrc
echo "alias cleanup='/var/lib/playground/cleanup.sh'" >> ~/.bashrc
bash

0 comments on commit 6086457

Please sign in to comment.