Skip to content

Commit

Permalink
pkg/recipe: update storj and edge images
Browse files Browse the repository at this point in the history
Change-Id: I91ff24f2c141513e37ec9185f0e0d7d0b00fab04
  • Loading branch information
dlamarmorgan committed Mar 26, 2024
1 parent b59274b commit 1ab65c1
Show file tree
Hide file tree
Showing 15 changed files with 382 additions and 383 deletions.
192 changes: 109 additions & 83 deletions pkg/config/gen/go.mod

Large diffs are not rendered by default.

530 changes: 252 additions & 278 deletions pkg/config/gen/go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/files/docker/storjscan.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.3
ARG TYPE
ARG SOURCE
FROM --platform=$TARGETPLATFORM img.dev.storj.io/storjup/build:20230627-1 AS base
FROM --platform=$TARGETPLATFORM img.dev.storj.io/storjup/build:20231025-2 AS base

FROM base AS commit
ARG BRANCH
Expand Down Expand Up @@ -34,7 +34,7 @@ RUN --mount=type=cache,target=/var/lib/storj/go/pkg/mod,mode=777,uid=1000 \
go install ./cmd/...
RUN go install github.com/elek/cethacea@main

FROM img.dev.storj.io/storjup/base:20231012-1 AS final
FROM img.dev.storj.io/storjup/base:20240228-1 AS final
COPY --from=binaries /var/lib/storj/go/bin /var/lib/storj/go/bin


2 changes: 1 addition & 1 deletion pkg/recipe/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand Down
5 changes: 2 additions & 3 deletions pkg/recipe/billing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ add:
- name: storjscan
label:
- storjscan
image: img.dev.storj.io/storjup/storjscan:20231012
image: img.dev.storj.io/storjup/storjscan:1.0.5
command:
- storjscan
- run
- --database=cockroach://root@cockroach:26257/storjscan?sslmode=disable
- --tokens.endpoint=http://geth:8545
- --tokens.contract=0x1E119A589270646585b044db12098B1e456a88Af
- --tokens.endpoints=[{"URL":"http://geth:8545","Contract":"0x1E119A589270646585b044db12098B1e456a88Af","ChainID":"1337"}]
- --token-price.interval=1m
- --token-price.coinmarketcap-config.base-url=https://sandbox-api.coinmarketcap.com
- --token-price.coinmarketcap-config.api-key=b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c
Expand Down
2 changes: 1 addition & 1 deletion pkg/recipe/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand Down
6 changes: 3 additions & 3 deletions pkg/recipe/edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- edge
image: img.dev.storj.io/storjup/edge:1.68.0
image: img.dev.storj.io/storjup/edge:1.74.0
command:
- gateway-mt
- run
Expand All @@ -25,7 +25,7 @@ add:
label:
- storj
- edge
image: img.dev.storj.io/storjup/edge:1.68.0
image: img.dev.storj.io/storjup/edge:1.74.0
command:
- authservice
- run
Expand All @@ -45,7 +45,7 @@ add:
label:
- storj
- edge
image: img.dev.storj.io/storjup/edge:1.68.0
image: img.dev.storj.io/storjup/edge:1.74.0
command:
- linksharing
- run
Expand Down
4 changes: 2 additions & 2 deletions pkg/recipe/gc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand All @@ -29,7 +29,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand Down
4 changes: 2 additions & 2 deletions pkg/recipe/minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand Down Expand Up @@ -50,7 +50,7 @@ add:
- storj
- core
instance: 10
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- storagenode
- run
Expand Down
2 changes: 1 addition & 1 deletion pkg/recipe/rangedloop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand Down
2 changes: 1 addition & 1 deletion pkg/recipe/repair.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add:
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- satellite
- run
Expand Down
2 changes: 1 addition & 1 deletion pkg/recipe/uplink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: uplink
description: uplink service
add:
- name: uplink
image: img.dev.storj.io/storjup/storj:1.93.2
image: img.dev.storj.io/storjup/storj:1.100.4
command:
- tail
- -F
Expand Down
4 changes: 2 additions & 2 deletions test/edge/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ test:
COPY ../../+build-app/storj-up .
# setup test environment
RUN /go/storj-up/storj-up init minimal,edge,db,uplink && \
/go/storj-up/storj-up image uplink img.dev.storj.io/storjup/storj:1.93.2 && \
/go/storj-up/storj-up image uplink img.dev.storj.io/storjup/storj:1.100.4 && \
/go/storj-up/storj-up env set authservice STORJ_ENDPOINT=http://gateway-mt:9999
COPY . .
WITH DOCKER --compose docker-compose.yaml
RUN docker compose exec -T -u 0 uplink bash -c 'storj-up health --host cockroach -d 120' && \
docker compose exec -T -u 0 uplink bash -c 'storj-up credentials -s satellite-api:7777 -c satellite-api:10000 -a http://authservice:8888 -e --s3 >> ~/.bashrc' && \
< basic_rclone.sh docker compose exec -T -u 0 uplink bash -i
END
END
4 changes: 2 additions & 2 deletions test/storjscan/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test:
/go/storj-up/storj-up env setenv satellite-core STORJ_PAYMENTS_STORJSCAN_INTERVAL=5s && \
/go/storj-up/storj-up env setenv satellite-core STORJ_PAYMENTS_STORJSCAN_CONFIRMATIONS=12 && \
/go/storj-up/storj-up env setenv storjscan STORJ_TOKEN_PRICE_USE_TEST_PRICES=true && \
/go/storj-up/storj-up image storjscan img.dev.storj.io/storjup/storjscan:20231012
/go/storj-up/storj-up image storjscan img.dev.storj.io/storjup/storjscan:1.0.5
COPY . .
WITH DOCKER --compose docker-compose.yaml
RUN docker compose exec -T -u 0 storjscan bash -c 'storj-up health --host cockroach -d 120' && \
Expand All @@ -20,4 +20,4 @@ test:
docker compose cp TestToken.abi storjscan:/var/lib/storj/TestToken.abi && \
docker compose cp TestToken.bin storjscan:/var/lib/storj/TestToken.bin && \
< basic_storjscan.sh docker compose exec -T -u 0 storjscan bash -i
END
END
2 changes: 1 addition & 1 deletion test/storjscan/basic_storjscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ curl -X POST 'http://satellite-api:10000/api/v0/payments/wallet' --header "Cooki
ADDRESS=$(curl -X GET -s http://satellite-api:10000/api/v0/payments/wallet --header "Cookie: _tokenKey=$_tokenKey" | jq -r '.address')

#ACCOUNT is defined with environment variables above
for i in {1..15}; do cethacea token transfer 1000 "$ADDRESS"; done
for i in {1..15}; do cethacea token transfer 1000 "$ADDRESS"; sleep 1; done
storj-up health --host cockroach -t billing_transactions -n 6 -d 12

RESPONSE=$(curl -X GET http://satellite-api:10000/api/v0/payments/wallet/payments --header "Cookie: _tokenKey=$_tokenKey")
Expand Down

0 comments on commit 1ab65c1

Please sign in to comment.