Skip to content

Commit

Permalink
add docker tasks to makefile, fix tran cli README in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Feb 5, 2022
1 parent 4d72328 commit d211fc7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,21 @@ build:

install: tran
@mv tran /usr/local/bin

btc: # build tran container
@docker build --file ./docker/vm/Dockerfile -t trancli/tran . && \
docker push trancli/tran

btcwc: # build tran container with cache
@docker pull trancli/tran:latest && \
docker build -t trancli/tran --cache-from trancli/tran:latest . && \
docker push trancli/tran

bftc: # build full tran container
@docker build --file ./docker/container/Dockerfile -t trancli/tran-full . && \
docker push trancli/tran-full

bftcwc: # build full tran container with cache
@docker pull trancli/tran-full:latest && \
docker build -t trancli/tran-full --cache-from trancli/tran-full:latest . && \
docker push trancli/tran-full
2 changes: 1 addition & 1 deletion docker/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ RUN sudo rm -rf $src

### wget new files ###
RUN wget https://abdfnx.github.io/tran/scripts/shell/zshrc -o $src
RUN wget https://abdfnx.github.io/tran/scripts/shell/tran/README
RUN wget https://abdfnx.github.io/tran/scripts/shell/README

CMD /bin/bash -c "cat README && zsh"

0 comments on commit d211fc7

Please sign in to comment.