Skip to content

Commit d446ad1

Browse files
committed
Add some sommon shell aliases in containers to ease administration tasks.
1 parent 09cf248 commit d446ad1

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

Dockerfile.centos7

+3
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ ENV PIP_CERT=/etc/ssl/certs/ca-bundle.crt
314314

315315
WORKDIR /tmp
316316

317+
# Add common shell aliases
318+
COPY shell-aliases.sh /etc/profile.d/
319+
317320
# Centos image default yum configs prevent docs installation
318321
# https://superuser.com/questions/784451/centos-on-docker-how-to-install-doc-files
319322
RUN sed -i '/nodocs/d' /etc/yum.conf

Dockerfile.rocky8

+3
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ ARG ADMIN_EMAIL
315315

316316
WORKDIR /tmp
317317

318+
# Add common shell aliases
319+
COPY shell-aliases.sh /etc/profile.d/
320+
318321
# TODO: is this also a problem with rocky8+?
319322
# Centos image default yum configs prevent docs installation
320323
# https://superuser.com/questions/784451/centos-on-docker-how-to-install-doc-files

Dockerfile.rocky9

+3
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ ARG ENABLE_OPENID
315315

316316
WORKDIR /tmp
317317

318+
# Add common shell aliases
319+
COPY shell-aliases.sh /etc/profile.d/
320+
318321
# TODO: is this also a problem with rocky8+?
319322
# Centos image default yum configs prevent docs installation
320323
# https://superuser.com/questions/784451/centos-on-docker-how-to-install-doc-files

shell-aliases.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Common shell aliases for interactive migrid container admin, etc.
2+
alias cp='cp -i'
3+
alias mv='mv -i'
4+
alias rm='rm -i'
5+
6+
alias ll='ls -alF'
7+
alias la='ls -A'

0 commit comments

Comments
 (0)