Skip to content

Commit d0b97ad

Browse files
committed
1 parent f71a4c0 commit d0b97ad

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ jobs:
2828
- uses: actions/checkout@v1
2929
- name: Test in Alpine
3030
run: ./test.sh alpine
31-
test-centos:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v1
35-
- name: Test in CentOS
36-
run: ./test.sh centos
3731
test-debian:
3832
runs-on: ubuntu-latest
3933
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
This is a script to automate [Oh My Zsh](https://ohmyz.sh/) installation in development containers.
9-
Works with any image based on Alpine, Ubuntu, Debian, CentOS or Amazon Linux.
9+
Works with any image based on Alpine, Ubuntu, Debian or Amazon Linux.
1010

1111
The original goal was to simplify setting up `zsh` and Oh My Zsh in a Docker image for use with [VSCode's Remote Containers
1212
extension](https://code.visualstudio.com/docs/remote/containers), but it can be used whenever you

docker-compose.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,3 @@ services:
3131
image: amazonlinux:latest
3232
entrypoint: /bin/sh
3333
command: -c "while sleep 1000; do :; done"
34-
35-
test-centos:
36-
image: centos:latest
37-
entrypoint: /bin/sh
38-
command: -c "while sleep 1000; do :; done"

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test_suite() {
4343
docker-compose stop -t 1 test-$image_name
4444
}
4545

46-
images=${*:-"alpine centos ubuntu ubuntu-14.04 debian amazonlinux"}
46+
images=${*:-"alpine ubuntu ubuntu-14.04 debian amazonlinux"}
4747

4848
for image in $images; do
4949
test_suite $image

zsh-in-docker.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ install_dependencies() {
6565
alpine)
6666
$Sudo apk add --update --no-cache git curl zsh
6767
;;
68-
centos | amzn)
68+
amzn)
6969
$Sudo yum update -y
70-
$Sudo yum install -y git curl
70+
$Sudo yum install -y git curl zsh
7171
$Sudo yum install -y ncurses-compat-libs # this is required for AMZN Linux (ref: https://github.com/emqx/emqx/issues/2503)
72-
$Sudo curl http://mirror.ghettoforge.org/distributions/gf/el/7/plus/x86_64/zsh-5.1-1.gf.el7.x86_64.rpm > zsh-5.1-1.gf.el7.x86_64.rpm
73-
$Sudo rpm -i zsh-5.1-1.gf.el7.x86_64.rpm
74-
$Sudo rm zsh-5.1-1.gf.el7.x86_64.rpm
7572
;;
7673
*)
7774
$Sudo apt-get update

0 commit comments

Comments
 (0)