Skip to content

Commit c7195dc

Browse files
author
Sameer Naik
authored
Merge pull request #124 from sameersbn/baseimage-update
update baseimage to ubuntu:bionic-20181204
2 parents 4bcb247 + fbdbdf5 commit c7195dc

3 files changed

Lines changed: 62 additions & 15 deletions

File tree

.circleci/config.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: /workdir
5+
docker:
6+
- image: docker:18.03.0-ce-git
7+
environment:
8+
IMAGE_NAME: "sameersbn/postgresql"
9+
10+
steps:
11+
- checkout
12+
13+
- setup_remote_docker:
14+
version: 18.03.1-ce
15+
16+
- run:
17+
name: Docker info
18+
command: |
19+
docker version
20+
docker info
21+
22+
- restore_cache:
23+
keys:
24+
- cache-{{ .Branch }}
25+
paths:
26+
- /cache/layers.tar
27+
28+
- run:
29+
name: Loading docker cache
30+
command: |
31+
if [[ -f /cache/layers.tar ]]; then
32+
docker load -i /cache/layers.tar
33+
fi
34+
35+
- run:
36+
name: Build docker image
37+
command: |
38+
docker build --cache-from=${IMAGE_NAME} -t ${IMAGE_NAME} .
39+
40+
- run:
41+
name: Generate docker build image cache
42+
command: |
43+
mkdir -p /cache
44+
docker save -o /cache/layers.tar ${IMAGE_NAME}
45+
46+
- save_cache:
47+
key: cache-{{ .Branch }}-{{ epoch }}
48+
paths:
49+
- /cache/layers.tar
50+
51+
workflows:
52+
version: 2
53+
build-and-test:
54+
jobs:
55+
- build:
56+
filters:
57+
branches:
58+
only: /.*/
59+
tags:
60+
only: /.*/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM ubuntu:bionic-20180526 AS add-apt-repositories
1+
FROM ubuntu:bionic-20181204 AS add-apt-repositories
22

33
RUN apt-get update \
44
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget gnupg \
55
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
66
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' >> /etc/apt/sources.list
77

8-
FROM ubuntu:bionic-20180526
8+
FROM ubuntu:bionic-20181204
99

1010
LABEL maintainer="sameer@damagehead.com"
1111

circle.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)