Skip to content

Commit 7f8c339

Browse files
committed
Add CentOS 7 + Devtoolset 7 image
Ref: Level/leveldown#672
1 parent c91560b commit 7f8c339

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### [`prebuild/linux-arm64`](https://hub.docker.com/r/prebuild/linux-arm64)
1010
### [`prebuild/linux-armv7`](https://hub.docker.com/r/prebuild/linux-armv7)
1111
### [`prebuild/alpine`](https://hub.docker.com/r/prebuild/alpine)
12+
### [`prebuild/centos7-devtoolset7`](https://hub.docker.com/r/prebuild/centos7-devtoolset7)
1213

1314
## License
1415

centos7-devtoolset7/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM centos/devtoolset-7-toolchain-centos7
2+
3+
USER 0
4+
5+
RUN groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
6+
groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis
7+
8+
RUN curl -sL https://rpm.nodesource.com/setup_12.x | bash - && \
9+
yum install -y nodejs
10+
11+
USER node
12+
13+
WORKDIR /opt/app-root

centos7-devtoolset7/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build:
2+
docker build -t prebuild/centos7-devtoolset7 .
3+
4+
push:
5+
docker push prebuild/centos7-devtoolset7

0 commit comments

Comments
 (0)