Skip to content

Commit 3b81b7e

Browse files
committed
fix debian docker with node 22
1 parent fcf182d commit 3b81b7e

File tree

4 files changed

+36
-11
lines changed

4 files changed

+36
-11
lines changed

docker/debian-msnodesqlv8/Dockerfile

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,29 @@ RUN ( cd $HOME/projects/openssl ; ./config --prefix=/usr/local/ssl --openssldir=
2929
RUN (cd /etc/ld.so.conf.d/; echo '/usr/local/ssl/lib64/' | tee openssl-3.2.0.1s.conf;)
3030
RUN (cd /usr/local/ssl; mv certs certs.old; ln -s /etc/ssl/certs certs)
3131
RUN ldconfig -v
32-
33-
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
32+
RUN useradd -ms /bin/bash apprunner
33+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
34+
RUN . ${HOME}/.nvm/nvm.sh && nvm install 22 && npm install -g yarn && npm install -g npm-check-updates && chmod -R 755 ${HOME}
3435
RUN DEBIAN_FRONTEND=noninteractive \
3536
apt-get update \
36-
&& apt-get install -y nodejs iputils-ping
37-
RUN npm install --g yarn
38-
RUN npm install --g npm-check-updates
39-
RUN useradd -ms /bin/bash apprunner
37+
&& apt-get install -y iputils-ping curl
4038
USER apprunner
41-
RUN (mkdir -p $HOME/app; cd $HOME/app; git clone https://github.com/TimelordUK/msnodesqlv8_yarn_sample.git; cd msnodesqlv8_yarn_sample; yarn install)
42-
RUN (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)
43-
RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
39+
RUN unset nvm
40+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
41+
RUN export NVM_DIR="$HOME/.nvm" && . $HOME/.nvm/nvm.sh; nvm install 22
42+
# RUN . ${HOME}/.nvm/nvm.sh && nvm install 22 && npm install -g yarn && npm install -g npm-check-updates
43+
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)
44+
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)
45+
46+
#RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
47+
#RUN DEBIAN_FRONTEND=noninteractive \
48+
# apt-get update \
49+
# && apt-get install -y nodejs iputils-ping
50+
#RUN npm install --g yarn
51+
#RUN npm install --g npm-check-updates
52+
#RUN useradd -ms /bin/bash apprunner
53+
#USER apprunner
54+
#RUN (mkdir -p $HOME/app; cd $HOME/app; git clone https://github.com/TimelordUK/msnodesqlv8_yarn_sample.git; cd msnodesqlv8_yarn_sample; yarn install)
55+
#RUN (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)
56+
#RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
4457

docker/debian-msnodesqlv8/README

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

docker/ubuntu-msnodesqlv8/README

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

eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{files: ["**/*.{js,mjs,cjs,ts}"]},
9+
{languageOptions: { globals: globals.browser }},
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
];

0 commit comments

Comments
 (0)