Skip to content

Commit 173f571

Browse files
feat: add dockerfile for circleci
1 parent 5cd26e2 commit 173f571

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.circleci/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ jobs:
1111
default: ""
1212
docker:
1313
- image: << parameters.maven-image >>
14+
- image: sonnh96/influxdb3-java-envoy:0.0.1
1415
steps:
1516
- checkout
1617
- restore_cache:
1718
name: Restoring Maven Cache
1819
keys:
1920
- &cache-key maven-cache_v1-<< parameters.maven-image >>-{{ checksum "pom.xml" }}
2021
- maven-cache_v3-<< parameters.maven-image >>-
21-
- run:
22-
name: "Run Envoy"
23-
background: true # this is maybe a bad idea
24-
command: |
25-
wget -O- https://apt.envoyproxy.io/signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/envoy-keyring.gpg
26-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io focal main" | sudo tee /etc/apt/sources.list.d/envoy.list
27-
sudo apt-get update
28-
sudo apt-get install envoy
29-
envoy -c .circleci/envoy.yaml
22+
# - run:
23+
# name: "Run Envoy"
24+
# command: |
25+
# wget -O- https://apt.envoyproxy.io/signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/envoy-keyring.gpg
26+
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io focal main" | sudo tee /etc/apt/sources.list.d/envoy.list
27+
# sudo apt-get update
28+
# sudo apt-get install envoy
29+
# envoy -c .circleci/envoy.yaml
3030
- run:
3131
name: "Running tests"
3232
command: |

.circleci/images/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM cimg/base:current
2+
3+
RUN wget -O- https://apt.envoyproxy.io/signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/envoy-keyring.gpg
4+
RUN sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io jammy main" | sudo tee /etc/apt/sources.list.d/envoy.list
5+
RUN sudo apt-get update
6+
RUN sudo apt-get install envoy
7+
8+
COPY ./envoy.yml /etc
9+
EXPOSE 10000
10+
11+
ENTRYPOINT ["/usr/bin/envoy", "-c", "/etc/envoy.yml", "-l", "debug"]

0 commit comments

Comments
 (0)