Skip to content

Commit 30f6f2a

Browse files
authored
Merge pull request #745 from topcoder-platform/develop
Fix failing build
2 parents 9208df2 + 92f6b50 commit 30f6f2a

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ deploy_steps: &deploy_steps
4444
jobs:
4545
UnitTests:
4646
docker:
47-
- image: circleci/node:12.16.1
47+
- image: cimg/node:12.22.12
4848
- image: circleci/postgres:9.6.2-alpine
4949
environment:
5050
- POSTGRES_USER: circle_test
@@ -61,7 +61,7 @@ jobs:
6161
command: |
6262
sudo apt update
6363
sudo apt install curl
64-
sudo apt install python-pip
64+
sudo apt install python3-pip
6565
- run: *install_awscli
6666
- run: *install_deploysuite
6767
- setup_remote_docker

Dockerfile

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
FROM node:12.16.1
2-
LABEL version="1.2"
3-
LABEL description="Projects microservice"
4-
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
5-
6-
RUN apt-get update && \
7-
apt-get upgrade -y
8-
9-
# install aws
10-
RUN apt-get install -y \
11-
ssh \
12-
python \
13-
python-dev \
14-
python-pip
15-
16-
RUN pip install awscli
17-
18-
RUN apt-get install libpq-dev
1+
FROM debian:11.6
2+
ENV NVM_VERSION=v0.39.3
3+
ENV NODE_VERSION=12.16.1
4+
RUN apt update
5+
RUN apt install -y \
6+
gnupg curl wget netbase procps git \
7+
apt-transport-https ca-certificates openssh-client \
8+
python3-pip
9+
RUN apt install -y \
10+
yarn \
11+
libpq-dev
12+
RUN pip3 install awscli
13+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash
14+
ENV NVM_DIR=/root/.nvm
15+
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
16+
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
17+
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
18+
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
19+
RUN node --version
20+
RUN npm --version
1921
# Create app directory
2022
RUN mkdir -p /usr/src/app
2123
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)