Skip to content

Commit 2d49c7e

Browse files
committed
drop centos docker add rocky
1 parent 83f70da commit 2d49c7e

File tree

3 files changed

+41
-61
lines changed

3 files changed

+41
-61
lines changed

docker/centos-msnodesqlv8/Dockerfile

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM rockylinux:9
2+
3+
RUN ACCEPT_EULA=Y \
4+
yum install -y sudo vim git wget perl-core perl-IPC-Cmd dialog ca-certificates gnupg2 openssl
5+
6+
RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
7+
8+
RUN yum remove unixODBC-utf16 unixODBC-utf16-devel
9+
10+
RUN yum install -y unixODBC-devel
11+
12+
RUN yum install -y gmp-devel mpfr-devel libmpc-devel wget
13+
14+
RUN ACCEPT_EULA=Y \
15+
yum install -y python3 unixODBC unixODBC-devel
16+
17+
RUN ACCEPT_EULA=Y \
18+
yum install -y msodbcsql18
19+
RUN ACCEPT_EULA=Y \
20+
yum install -y mssql-tools18
21+
22+
RUN curl -sL https://rpm.nodesource.com/setup_20.x | bash -
23+
RUN ACCEPT_EULA=Y \
24+
yum install -y nodejs iputils
25+
RUN npm install --g yarn
26+
RUN npm install --g npm-check-updates
27+
RUN useradd -ms /bin/bash apprunner
28+
ENV LD_LIBRARY_PATH /usr/local/lib64
29+
RUN (export LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH};)
30+
RUN mkdir -p $HOME/projects
31+
32+
USER apprunner
33+
RUN unset nvm
34+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
35+
RUN export NVM_DIR="$HOME/.nvm" && . $HOME/.nvm/nvm.sh; nvm install 22
36+
RUN . ${HOME}/.nvm/nvm.sh; npm install -g yarn
37+
# RUN . ${HOME}/.nvm/nvm.sh && nvm install 22 && npm install -g yarn && npm install -g npm-check-updates
38+
RUN . ${HOME}/.nvm/nvm.sh; (mkdir -p $HOME/app; cd $HOME/app; git clone https://github.com/TimelordUK/msnodesqlv8_yarn_sample.git; cd msnodesqlv8_yarn_sample; yarn install)
39+
RUN . ${HOME}/.nvm/nvm.sh; (mkdir -p $HOME/app/driver/node_modules; cd $HOME/app/driver/node_modules; git clone https://github.com/TimelordUK/node-sqlserver-v8.git msnodesqlv8; cd msnodesqlv8; npm install)
40+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exit <ret>
3737

3838
list containers
3939

40-
docker container ls
40+
docker container ls -a
4141

4242
start a container
4343

0 commit comments

Comments
 (0)