Skip to content

Commit c07e6ee

Browse files
TGPTGP
authored andcommitted
use new base image for build & release
1 parent 69bd9a8 commit c07e6ee

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ orbs:
44
jobs:
55
build:
66
docker:
7-
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
7+
- image: mijitt0m/ocelot-build:0.0.5
88
steps:
99
- checkout
1010
- run: dotnet tool restore && dotnet cake
1111
release:
1212
docker:
13-
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
13+
- image: mijitt0m/ocelot-build:0.0.5
1414
steps:
1515
- checkout
1616
- run: dotnet tool restore && dotnet cake --target=Release

docker/Dockerfile.base

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# syntax=docker/dockerfile:1
2+
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
3+
4+
RUN apk add bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib
5+
6+
RUN curl -L --output ./dotnet-install.sh https://dot.net/v1/dotnet-install.sh
7+
8+
RUN chmod u+x ./dotnet-install.sh
9+
10+
RUN ./dotnet-install.sh -c 5.0

docker/Dockerfile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# call from ocelot repo root with
33
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
44
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
5-
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
5+
FROM mijitt0m/ocelot-build:0.0.5
66

77
ARG OCELOT_COVERALLS_TOKEN
88

docker/Dockerfile.release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# call from ocelot repo root with
33
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN --build-arg OCELOT_GITHUB_API_KEY=$OCELOT_GITHUB_API_KEY --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
44
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN --build-arg OCELOT_GITHUB_API_KEY=$OCELOT_GITHUB_API_KEY --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
5-
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
5+
FROM mijitt0m/ocelot-build:0.0.5
66

77
ARG OCELOT_COVERALLS_TOKEN
88
ARG OCELOT_NUTGET_API_KEY

docker/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# this script build the ocelot docker file
2+
version=0.0.5
3+
docker build --platform linux/amd64 -t mijitt0m/ocelot-build -f Dockerfile.base .
4+
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
5+
docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:$version
6+
docker push mijitt0m/ocelot-build:latest
7+
docker push mijitt0m/ocelot-build:$version

0 commit comments

Comments
 (0)