File tree 2 files changed +28
-14
lines changed
2 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 1
1
FROM ghcr.io/alphagov/paas/ubuntu:main
2
2
3
- RUN apt update \
4
- && apt install -y \
5
- build-essential \
6
- openssh-client \
7
- unzip \
8
- python3-pip \
9
- jq \
10
- git \
11
- fossil \
12
- mercurial \
13
- bzr \
14
- subversion
3
+ RUN wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc > /etc/apt/trusted.gpg.d/ACCC4CF8.asc \
4
+ && echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list
5
+ RUN apt update && apt install -y \
6
+ build-essential \
7
+ openssh-client \
8
+ unzip \
9
+ python3-pip \
10
+ jq \
11
+ git \
12
+ fossil \
13
+ mercurial \
14
+ bzr \
15
+ subversion \
16
+ postgresql-12 \
17
+ postgresql-client-12
15
18
16
19
ENV GOPATH /go
17
20
ENV PATH /go/bin:/usr/local/go/bin:$PATH
@@ -30,8 +33,8 @@ RUN go install github.com/onsi/ginkgo/v2/ginkgo@latest
30
33
31
34
# Install the cf CLI
32
35
RUN wget -q -O cf.deb "https://packages.cloudfoundry.org/stable?release=debian64&version=${CF_CLI_VERSION}&source=github-rel" && \
33
- dpkg -i cf.deb && \
34
- rm -f cf.deb
36
+ dpkg -i cf.deb && \
37
+ rm -f cf.deb
35
38
36
39
# Setup plugins
37
40
ENV CF_PLUGIN_HOME /root/
Original file line number Diff line number Diff line change 1
1
require 'spec_helper'
2
2
require 'docker'
3
3
require 'serverspec'
4
+ require 'pathname'
4
5
5
6
GO_VERSION = "1.21.1"
6
7
CF_CLI_VERSION = "8.6.0"
58
59
) . to eq ( 0 )
59
60
end
60
61
62
+ it "has psql available" do
63
+ expect (
64
+ command ( "psql --version" ) . exit_status
65
+ ) . to eq ( 0 )
66
+ end
67
+
68
+ it "has postgresql startup script" do
69
+ expect ( Pathname . new ( '/usr/bin/pg_ctlcluster' ) ) . to exist
70
+ end
71
+
61
72
it "has the CF_PLUGIN_HOME variable set" do
62
73
expect (
63
74
command ( "env" ) . stdout
You can’t perform that action at this time.
0 commit comments