Skip to content

Commit 428eed8

Browse files
committed
Added specific bashrc files
1 parent 96f9660 commit 428eed8

9 files changed

+97
-1
lines changed

docker/Dockerfile.acmesh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ RUN echo "Acme.sh: nginxproxymanager/nginx-full:${BASE_TAG:-latest}, ${TARGETPLA
66

77
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
88

9+
COPY ./files/.bashrc.acmesh /root/.bashrc
10+
911
# acme.sh
1012
RUN mkdir -p /data/acme.sh \
1113
&& curl -o /bin/acme.sh 'https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh' \

docker/Dockerfile.acmesh-golang

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \
2020

2121
WORKDIR /root
2222

23+
COPY ./files/.bashrc.acmesh-golang /root/.bashrc
24+
2325
# Gotools
2426
RUN if [ "$TARGETPLATFORM" == "" ] || [ "$TARGETPLATFORM" == "linux/amd64" ]; then cd /usr && wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.39.0; fi
2527
RUN go get -u github.com/kyoh86/richgo \

docker/Dockerfile.certbot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ RUN apt-get update \
5959
&& apt-get clean \
6060
&& rm -rf /var/lib/apt/lists/*
6161

62+
COPY ./files/.bashrc.certbot /root/.bashrc
63+
6264
# Copy certbot
6365
COPY --from=certbotbuilder /opt/certbot /opt/certbot
6466
RUN curl -L 'https://bootstrap.pypa.io/get-pip.py' | python3 \

docker/Dockerfile.certbot-node

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
1414
&& npm install -g yarn \
1515
&& ln -s /usr/bin/python3 /usr/bin/python
1616

17+
COPY ./files/.bashrc.certbot-node /root/.bashrc
18+
1719
# Check nodejs works on this architecture
1820
COPY ./files/test.js /tmp/test.js
1921
RUN node /tmp/test.js \

files/.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ alias h='cd ~;clear;'
1616

1717
echo -e -n '\E[1;34m'
1818
figlet -w 120 "nginx-full"
19-
echo -e "\E[1;36mOpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m, Certbot \E[1;32m$(certbot --version)\E[0m"
19+
echo -e "\E[1;36mOpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m\E[0m"
2020
echo -e -n '\E[1;34m'
2121
cat /built-for-arch
2222
echo -e '\E[0m'

files/.bashrc.acmesh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
if [ -t 1 ]; then
4+
export PS1="\e[1;34m[\e[1;33m\u@\e[1;32mdocker-\h\e[1;37m:\w\[\e[1;34m]\e[1;36m\\$ \e[0m"
5+
fi
6+
7+
# Aliases
8+
alias l='ls -lAsh --color'
9+
alias ls='ls -C1 --color'
10+
alias cp='cp -ip'
11+
alias rm='rm -i'
12+
alias mv='mv -i'
13+
alias h='cd ~;clear;'
14+
15+
. /etc/os-release
16+
17+
echo -e -n '\E[1;34m'
18+
figlet -w 120 "nginx-full"
19+
echo -e "\E[1;36mOpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m, Acme.sh \E[1;32m$(acme.sh --version | tail -1)\E[0m"
20+
echo -e -n '\E[1;34m'
21+
cat /built-for-arch
22+
echo -e '\E[0m'

files/.bashrc.acmesh-golang

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
if [ -t 1 ]; then
4+
export PS1="\e[1;34m[\e[1;33m\u@\e[1;32mdocker-\h\e[1;37m:\w\[\e[1;34m]\e[1;36m\\$ \e[0m"
5+
fi
6+
7+
# Aliases
8+
alias l='ls -lAsh --color'
9+
alias ls='ls -C1 --color'
10+
alias cp='cp -ip'
11+
alias rm='rm -i'
12+
alias mv='mv -i'
13+
alias h='cd ~;clear;'
14+
15+
. /etc/os-release
16+
17+
echo -e -n '\E[1;34m'
18+
figlet -w 120 "nginx-full"
19+
echo -e "\E[1;36mOpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m, Acme.sh \E[1;32m$(acme.sh --version | tail -1)\E[1;36m, go \E[1;32m$(go version)\E[0m"
20+
echo -e -n '\E[1;34m'
21+
cat /built-for-arch
22+
echo -e '\E[0m'

files/.bashrc.certbot

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
if [ -t 1 ]; then
4+
export PS1="\e[1;34m[\e[1;33m\u@\e[1;32mdocker-\h\e[1;37m:\w\[\e[1;34m]\e[1;36m\\$ \e[0m"
5+
fi
6+
7+
# Aliases
8+
alias l='ls -lAsh --color'
9+
alias ls='ls -C1 --color'
10+
alias cp='cp -ip'
11+
alias rm='rm -i'
12+
alias mv='mv -i'
13+
alias h='cd ~;clear;'
14+
15+
. /etc/os-release
16+
17+
echo -e -n '\E[1;34m'
18+
figlet -w 120 "nginx-full"
19+
echo -e "\E[1;36mOpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m, Certbot \E[1;32m$(certbot --version)\E[0m"
20+
echo -e -n '\E[1;34m'
21+
cat /built-for-arch
22+
echo -e '\E[0m'

files/.bashrc.certbot-node

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
if [ -t 1 ]; then
4+
export PS1="\e[1;34m[\e[1;33m\u@\e[1;32mdocker-\h\e[1;37m:\w\[\e[1;34m]\e[1;36m\\$ \e[0m"
5+
fi
6+
7+
# Aliases
8+
alias l='ls -lAsh --color'
9+
alias ls='ls -C1 --color'
10+
alias cp='cp -ip'
11+
alias rm='rm -i'
12+
alias mv='mv -i'
13+
alias h='cd ~;clear;'
14+
15+
. /etc/os-release
16+
17+
echo -e -n '\E[1;34m'
18+
figlet -w 120 "nginx-full"
19+
echo -e "\E[1;36mOpenResty \E[1;32m${OPENRESTY_VERSION:-unknown}\E[1;36m, ${ID:-debian} \E[1;32m${VERSION:-unknown}\E[1;36m, Certbot \E[1;32m$(certbot --version)\E[1;36m, Node \E[1;32m$(node --version)\E[0m"
20+
echo -e -n '\E[1;34m'
21+
cat /built-for-arch
22+
echo -e '\E[0m'

0 commit comments

Comments
 (0)