mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
update of few files
This commit is contained in:
@@ -23,8 +23,8 @@ RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
||||
RUN wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
|
||||
tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
|
||||
|
||||
RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ./bashrc
|
||||
RUN echo "export GOPATH=$HOME/go" >> ./bashrc
|
||||
RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ./.bashrc
|
||||
RUN echo "export GOPATH=$HOME/go" >> ./.bashrc
|
||||
|
||||
RUN git clone https://github.com/arnaucube/configs.git && \
|
||||
cp configs/.vimrc ~/ && \
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=${0::-3}
|
||||
|
||||
if [[ $1 == "help" ]]; then
|
||||
echo "lc (Launch Container) help:
|
||||
===========================
|
||||
@@ -18,15 +20,16 @@ elif [[ $1 == "new" ]]; then
|
||||
lang=$2
|
||||
|
||||
if [[ $lang == "rust" ]]; then
|
||||
lang="Dockerfile.rust"
|
||||
lang="$path/Dockerfile.rust"
|
||||
elif [[ $lang == "go" ]]; then
|
||||
lang="Dockerfile.go"
|
||||
lang="$path/Dockerfile.go"
|
||||
else
|
||||
echo "available dockerfiles: go, rust"
|
||||
exit 0
|
||||
fi
|
||||
echo $lang
|
||||
|
||||
sudo docker build -t $4 -f $lang .
|
||||
sudo docker build -t $4 -f $lang $path/.
|
||||
sudo docker run -it --entrypoint=/bin/bash --name $3 $4
|
||||
exit 0
|
||||
elif [[ $1 == "stop" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user