Skip to content

Commit af1cee6

Browse files
committed
docker: add Dockerfile.dev & move docker-related files to "docker/"
Dockerfile.dev: This variation of the original Dockerfile is introduced to help developers run their testsuite in the build phase of the docker image. Signed-off-by: Panagiotis Foliadis <[email protected]>
1 parent b7a28a1 commit af1cee6

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

Dockerfile docker/Dockerfile

File renamed without changes.

docker/Dockerfile.dev

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
20+
FROM postgres:11-buster
21+
22+
RUN apt-get update
23+
RUN apt-get install --assume-yes --no-install-recommends --no-install-suggests \
24+
bison \
25+
build-essential \
26+
flex \
27+
postgresql-server-dev-11
28+
29+
COPY . /age
30+
31+
# Set current working directory to /age/ and build.
32+
WORKDIR /age
33+
RUN make install
34+
35+
# Give permssion to the 'postgres' user to run the tests
36+
RUN chown -R postgres /age
37+
USER postgres
38+
39+
# Run the tests
40+
RUN make installcheck
41+
42+
COPY docker/docker-entrypoint-initdb.d/00-create-extension-age.sql /docker-entrypoint-initdb.d/00-create-extension-age.sql
43+
44+
CMD ["postgres", "-c", "shared_preload_libraries=age"]

0 commit comments

Comments
 (0)