Skip to content

Commit 3363c50

Browse files
[ONPREM-2261] Add initial server-rabbitmq image (#32)
* Add initial server-rabbitmq image * Try apt update and upgrade * Add publish_rabbitmq job
1 parent 95e6adf commit 3363c50

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.circleci/config.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ jobs:
3131
DOCKERFILE_PATH: Dockerfile
3232
MAJOR_VERSION: 12.22
3333
pwd: postgresql/12
34+
scan_rabbitmq:
35+
executor: ccc
36+
steps:
37+
- set_up_container
38+
- run:
39+
name: Scan server-rabbitmq image
40+
command: scan
41+
environment:
42+
NAME: server-rabbitmq
43+
DOCKERFILE_PATH: Dockerfile
44+
MAJOR_VERSION: 3.12
45+
pwd: rabbitmq/3
3446
publish_postgresql:
3547
executor: ccc
3648
steps:
@@ -44,17 +56,44 @@ jobs:
4456
DOCKER_REGISTRY: dockerhub
4557
MAJOR_VERSION: 12.22
4658
pwd: postgresql/12
59+
publish_rabbitmq:
60+
executor: ccc
61+
steps:
62+
- set_up_container
63+
- run:
64+
name: Build and publish server-rabbitmq image
65+
command: publish
66+
environment:
67+
NAME: server-rabbitmq
68+
DOCKERFILE_PATH: Dockerfile
69+
DOCKER_REGISTRY: dockerhub
70+
MAJOR_VERSION: 3.12
71+
pwd: rabbitmq/3
4772

4873
workflows:
4974
my-workflow:
5075
jobs:
76+
- scan_rabbitmq:
77+
context: "org-global"
78+
filters:
79+
branches:
80+
ignore:
81+
- main
82+
- /^server-\d\..+/
5183
- scan_postgresql:
5284
context: "org-global"
5385
filters:
5486
branches:
5587
ignore:
5688
- main
5789
- /^server-\d\..+/
90+
- publish_rabbitmq:
91+
context: "org-global"
92+
filters:
93+
branches:
94+
only:
95+
- main
96+
- /^server-\d\..+/
5897
- publish_postgresql:
5998
context: "org-global"
6099
filters:
@@ -67,7 +106,7 @@ workflows:
67106
context: "org-global"
68107
requires:
69108
- publish_postgresql
70-
promotion_component_list: "circleci/server-postgres"
109+
promotion_component_list: "circleci/server-postgres circleci/server-rabbitmq"
71110
filters:
72111
branches:
73112
only:

rabbitmq/3/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM bitnami/rabbitmq:latest AS build
2+
3+
FROM bitnami/rabbitmq:3.12
4+
5+
COPY --from=build /opt/bitnami/erlang /opt/bitnami/erlang
6+
7+
USER root
8+
9+
RUN apt-get update && apt-get upgrade -y && \
10+
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
11+
12+
USER 1001

0 commit comments

Comments
 (0)