diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 04e8074b9..3303e9afb 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,7 +3,7 @@ # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. #------------------------------------------------------------------------------------------------------------- -FROM node:20 +FROM node:22 # Avoid warnings by switching to noninteractive ENV DEBIAN_FRONTEND=noninteractive @@ -35,7 +35,7 @@ RUN apt-get update \ && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ && apt-get update \ && apt-get -y install --no-install-recommends yarn tmux locales postgresql \ - && apt-get install libpq-dev g++ make \ + && apt-get install libpq-dev python3 g++ make \ # # Install eslint globally && npm install -g eslint \ diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 11e652008..d0ab0e8dd 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -39,7 +39,7 @@ services: - db:db db: - image: postgres:14-alpine + image: postgres:14 restart: unless-stopped ports: - 5432:5432 diff --git a/packages/pg-native/test/index.js b/packages/pg-native/test/index.js index 6770fe143..905225b1b 100644 --- a/packages/pg-native/test/index.js +++ b/packages/pg-native/test/index.js @@ -7,7 +7,7 @@ describe('connection', function () { }) it('connects with args', function (done) { - Client().connect('host=localhost', done) + Client().connect(`host=${process.env.PGHOST || 'localhost'}`, done) }) it('errors out with bad connection args', function (done) {