Skip to content

Commit

Permalink
Updated osslsigncode to 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbero committed Oct 4, 2022
1 parent a391eab commit 0587b1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion webservice/deployment.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local newDeployment(name, artifactId, version) = {
docker: {
registry: "docker.io",
repository: "eclipsecbi",
baseImage: "eclipse-temurin:11-jdk",
baseImage: "eclipse-temurin:17-jdk",
imageName: $.name,
tag: $.version,
image: "%s/%s/%s:%s" % [self.registry, self.repository, self.imageName, self.tag,],
Expand Down
28 changes: 12 additions & 16 deletions webservice/signing/windows/service.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local deployment = import "../../deployment.libsonnet";
deployment.newDeployment("authenticode-signing", std.extVar("artifactId"), std.extVar("version")) {
pathspec: "/authenticode/sign",
osslsigncodeRepo: "https://github.com/mtrojnar/osslsigncode",
osslsigncodeTag: "2.1", # the tag of osslsigncode to build and deploy
osslsigncodeTag: "2.5", # the tag of osslsigncode to build and deploy
preDeploy: importstr "../keystore.sh",
keystore: {
path: "/var/run/secrets/%s/" % $.name,
Expand Down Expand Up @@ -62,33 +62,29 @@ deployment.newDeployment("authenticode-signing", std.extVar("artifactId"), std.e
},
osslsigncodePath: "/usr/local/bin",
Dockerfile: |||
FROM debian AS builder
FROM %(builderImage)s AS builder
RUN apt-get update && apt-get -y --no-install-recommends install \
autoconf \
automake \
build-essential \
ca-certificates \
cmake \
git \
libcurl4-gnutls-dev \
libgsf-1-dev \
libtool \
libcurl4-openssl-dev \
libssl-dev \
python3-pkgconfig \
&& rm -rf /var/lib/apt/lists/*
RUN git clone %(osslsigncodeRepo)s \
&& cd osslsigncode \
&& git checkout tags/%(osslsigncodeTag)s -b %(osslsigncodeTag)s \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install
||| % $ + super.Dockerfile + |||
&& mkdir build \
&& cd build \
&& cmake -S .. \
&& cmake --build .
||| % $ { builderImage: $.docker.baseImage } + super.Dockerfile + |||
RUN apt-get update && apt-get -y --no-install-recommends install \
libcurl4-gnutls-dev \
libgsf-1-dev
COPY --from=builder /osslsigncode/osslsigncode %(osslsigncodePath)s/
libcurl4 \
libssl3
COPY --from=builder /osslsigncode/build/osslsigncode %(osslsigncodePath)s/
||| % $,
configuration+: {
Expand Down

0 comments on commit 0587b1c

Please sign in to comment.