Skip to content

Commit

Permalink
Change version to 1.0.4 everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
delneg committed Jul 30, 2024
1 parent 131cf66 commit 9bd4116
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04
env:
SGX_MODE: HW
VERSION: "1.0.3"
VERSION: "1.0.4"
PRODUCTION_MODE: true
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-tar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04
env:
SGX_MODE: HW
VERSION: "1.0.3"
VERSION: "1.0.4"
PRODUCTION_MODE: true
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := v1.0.3
VERSION := v1.0.4
COMMIT := $(shell git log -1 --format='%H')
ENCLAVE_HOME ?= $(HOME)/.swisstronik-enclave
PRODUCTION_MODE ?= false
Expand Down
4 changes: 2 additions & 2 deletions deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ then
export SUDO_USER=root
fi

cat <<EOF > /etc/systemd/system/swisstronik-node-v1.0.3.service
cat <<EOF > /etc/systemd/system/swisstronik-node-v1.0.4.service
[Unit]
Description=Swisstronik node service
After=network.target
[Service]
Type=simple
WorkingDirectory=$(eval echo ~"$SUDO_USER")
ExecStart=/usr/local/bin/swisstronikd_v1.0.3 start --rpc.laddr "tcp://0.0.0.0:26657" --json-rpc.address 0.0.0.0:8545 --json-rpc.ws-address 0.0.0.0:8546 --home /opt/swisstronik/.swisstronik
ExecStart=/usr/local/bin/swisstronikd_v1.0.4 start --rpc.laddr "tcp://0.0.0.0:26657" --json-rpc.address 0.0.0.0:8545 --json-rpc.ws-address 0.0.0.0:8546 --home /opt/swisstronik/.swisstronik
User=$SUDO_USER
Restart=on-failure
StartLimitInterval=0
Expand Down
6 changes: 3 additions & 3 deletions deb/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

set -e

systemctl stop swisstronik-node-v1.0.3 || true
systemctl disable swisstronik-node-v1.0.3 || true
rm -f /etc/systemd/system/swisstronik-node-v1.0.3.service || true
systemctl stop swisstronik-node-v1.0.4 || true
systemctl disable swisstronik-node-v1.0.4 || true
rm -f /etc/systemd/system/swisstronik-node-v1.0.4.service || true
rm -r /opt/swisstronik/ || true
systemctl daemon-reload || true
4 changes: 2 additions & 2 deletions docker/deb.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN make build
############ Node binary for deb package
FROM compile-base as build-deb

ARG BUILD_VERSION="v1.0.3"
ARG BUILD_VERSION="v1.0.4"
ENV VERSION=${BUILD_VERSION}
ARG DEB_BIN_DIR=/usr/local/bin
ENV DEB_BIN_DIR=${DEB_BIN_DIR}
Expand All @@ -61,7 +61,7 @@ WORKDIR /root
# Copy over binaries from the build-env
COPY --from=compile-chain /root/chain/build/swisstronikd swisstronikd
COPY --from=compile-chain /root/.swisstronik-enclave /usr/lib/.swisstronik-enclave
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.3.x86_64.so /usr/lib/.swisstronik-enclave/libsgx_wrapper_v1.0.3.x86_64.so
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.4.x86_64.so /usr/lib/.swisstronik-enclave/libsgx_wrapper_v1.0.4.x86_64.so

COPY ./deb ./deb
COPY ./scripts/build_deb.sh .
Expand Down
4 changes: 2 additions & 2 deletions docker/node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ FROM base as hw-node

COPY --from=compile-chain /root/chain/build/swisstronikd /usr/local/bin/swisstronikd
COPY --from=compile-chain /root/.swisstronik-enclave /root/.swisstronik-enclave
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.3.x86_64.so /lib/x86_64-linux-gnu/libsgx_wrapper_v1.0.3.x86_64.so
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.4.x86_64.so /lib/x86_64-linux-gnu/libsgx_wrapper_v1.0.4.x86_64.so
COPY --from=compile-chain /opt/intel /opt/intel

EXPOSE 26656 26657 1317 9090 8545 8546 8999
Expand All @@ -62,7 +62,7 @@ RUN rm -rf /var/lib/apt/lists/*

COPY --from=compile-chain /root/chain/build/swisstronikd /usr/bin/swisstronikd
COPY --from=compile-chain /root/.swisstronik-enclave /root/.swisstronik-enclave
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.3.x86_64.so /lib/x86_64-linux-gnu/libsgx_wrapper_v1.0.3.x86_64.so
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.4.x86_64.so /lib/x86_64-linux-gnu/libsgx_wrapper_v1.0.4.x86_64.so
COPY --from=compile-chain /opt/intel/sgxsdk/sdk_libs/* /lib/x86_64-linux-gnu/
COPY --from=compile-chain /root/chain/scripts/local-node.sh /root/local-node.sh

Expand Down
4 changes: 2 additions & 2 deletions docker/tar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ RUN make build
############ Node binary for deb package
FROM compile-base as build-tar

ARG BUILD_VERSION="v1.0.3"
ARG BUILD_VERSION="v1.0.4"
ENV VERSION=${BUILD_VERSION}

WORKDIR /root

# Copy over binaries from the build-env
COPY --from=compile-chain /root/chain/build/swisstronikd swisstronikd
COPY --from=compile-chain /root/.swisstronik-enclave /usr/lib/.swisstronik-enclave
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.3.x86_64.so /usr/lib/.swisstronik-enclave/libsgx_wrapper_v1.0.3.x86_64.so
COPY --from=compile-chain /root/chain/go-sgxvm/internal/api/libsgx_wrapper_v1.0.4.x86_64.so /usr/lib/.swisstronik-enclave/libsgx_wrapper_v1.0.4.x86_64.so

COPY ./deb ./deb
COPY ./scripts/build_tar.sh .
Expand Down
6 changes: 3 additions & 3 deletions go-sgxvm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ CXX=clang++
SGX_MODE ?= HW
ENCLAVE_HOME ?= $(HOME)/.swisstronik-enclave
PRODUCTION_MODE ?= false
AS_MODE ?= false
VERSION := v1.0.3
AS_MODE ?= false
VERSION := v1.0.4
Wrapper_build_feature := ""

Wrapper_lib := libsgx_wrapper_$(VERSION).x86_64.so
Expand Down Expand Up @@ -40,4 +40,4 @@ build_AS: build
go build -tags osusergo,netgo,attestationServer -o ../build/attestationServer ./cmd/attestation

build_AS_d: build_d
go build -tags osusergo,netgo,attestationServer -o ../build/attestationServer ./cmd/attestation
go build -tags osusergo,netgo,attestationServer -o ../build/attestationServer ./cmd/attestation
2 changes: 1 addition & 1 deletion go-sgxvm/internal/api/link_glibclinux_aarch64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.3.aarch64
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.4.aarch64
import "C"
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_attestation_wrapper_v1.0.3.x86_64
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_attestation_wrapper_v1.0.4.x86_64
import "C"
2 changes: 1 addition & 1 deletion go-sgxvm/internal/api/link_glibclinux_x86_64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.3.x86_64
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.4.x86_64
import "C"
2 changes: 1 addition & 1 deletion go-sgxvm/internal/api/link_mac.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.3
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.4
import "C"
2 changes: 1 addition & 1 deletion go-sgxvm/internal/api/link_muslc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.3_muslc
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.4_muslc
import "C"
2 changes: 1 addition & 1 deletion go-sgxvm/internal/api/link_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -lsgx_wrapper_v1.0.3
// #cgo LDFLAGS: -lsgx_wrapper_v1.0.4
import "C"
2 changes: 1 addition & 1 deletion go-sgxvm/internal/api/link_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package api

// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.3
// #cgo LDFLAGS: -Wl,-rpath,${SRCDIR} -L${SRCDIR} -lsgx_wrapper_v1.0.4
import "C"
10 changes: 5 additions & 5 deletions go-sgxvm/src/enclave/doorbell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use std::ops::Deref;
use std::time::Duration;

#[cfg(not(feature = "attestation_server"))]
static ENCLAVE_FILE: &'static str = "v1.0.3_enclave.signed.so";
static ENCLAVE_FILE: &'static str = "v1.0.4_enclave.signed.so";

#[cfg(feature = "attestation_server")]
static ENCLAVE_FILE: &'static str = "v1.0.3_attestation_enclave.signed.so";
static ENCLAVE_FILE: &'static str = "v1.0.4_attestation_enclave.signed.so";

#[cfg(feature = "attestation_server")]
const ENCLAVE_LOCK_TIMEOUT: u64 = 6 * 50;
Expand All @@ -35,7 +35,7 @@ impl EnclaveDoorbell {
secs_attr: sgx_attributes_t { flags: 0, xfrm: 0 },
misc_select: 0,
};

let enclave_home = env::var("ENCLAVE_HOME").unwrap_or_else(|_| {
let dir_path = String::from(
std::env::home_dir()
Expand All @@ -46,12 +46,12 @@ impl EnclaveDoorbell {
format!("{}/.swisstronik-enclave", dir_path)
});
let enclave_path = format!("{}/{}", enclave_home, ENCLAVE_FILE);

println!(
"[Enclave Doorbell] Creating enclave. Enclave location: {:?}",
enclave_path
);

let enclave = SgxEnclave::create(
enclave_path,
debug,
Expand Down
2 changes: 1 addition & 1 deletion sgxvm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Enclave_Security_Link_Flags := -Wl,-z,relro,-z,now,-z,noexecstack
Enclave_config_file ?= Enclave.config.development.xml
Enclave_signing_key ?= Enclave_dev_private.pem
Enclave_signed_file ?= enclave.signed.so
VERSION ?= v1.0.3
VERSION ?= v1.0.4

# ENCLAVE SETTINGS
ifneq ($(SGX_MODE), HW)
Expand Down

0 comments on commit 9bd4116

Please sign in to comment.