Skip to content

Commit 509cc6f

Browse files
authored
Fix permissions in Dockerfile (#304)
This pull request includes a small change to the `Dockerfile`. The change ensures that the `xiond` binary has the appropriate executable permissions after being copied to the `/go/bin` directory. * Added `chmod a+x /go/bin/xiond` to ensure the `xiond` binary is executable after being copied. --------- Signed-off-by: TwiceBurnt <[email protected]>
1 parent 5361e0e commit 509cc6f

File tree

6 files changed

+11
-39
lines changed

6 files changed

+11
-39
lines changed

.github/workflows/create-release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
uses: burnt-labs/xion/.github/workflows/docker-scout.yaml@workflows/main
6868
secrets: inherit
6969

70-
# interchain-tests:
71-
# name: Interchain tests
72-
# needs:
73-
# - build-docker
74-
# - build-integration
75-
# uses: burnt-labs/xion/.github/workflows/integration-tests.yaml@workflows/main
76-
# secrets: inherit
70+
interchain-tests:
71+
name: Interchain tests
72+
needs:
73+
- build-docker
74+
- build-integration
75+
uses: burnt-labs/xion/.github/workflows/integration-tests.yaml@workflows/main
76+
secrets: inherit
7777

7878
build-release:
7979
name: Build Release
@@ -83,7 +83,7 @@ jobs:
8383
- unit-tests
8484
- build-darwin
8585
- docker-scout
86-
#- interchain-tests
86+
- interchain-tests
8787
uses: burnt-labs/xion/.github/workflows/goreleaser.yaml@workflows/main
8888
secrets: inherit
8989

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
4040
mkdir -p /go/bin; \
4141
if [ -e "${PREBUILT_BINARY:-}" ]; then \
4242
cp -a "${PREBUILT_BINARY}" /go/bin/xiond; \
43+
chmod a+x /go/bin/xiond; \
4344
else \
4445
goreleaser build \
4546
--config .goreleaser/build.yaml \
4647
--snapshot --clean --single-target --skip validate; \
4748
cp -a $(find ./dist -name xiond-${GOOS}-${GOARCH}) /go/bin/xiond; \
49+
chmod a+x /go/bin/xiond; \
4850
fi;
4951

5052
# --------------------------------------------------------

client/docs/config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,6 @@ apis:
201201
tags:
202202
rename:
203203
Query: IBC/Core
204-
- url: ./packetforward/v1/query.swagger.json
205-
operationIds:
206-
rename:
207-
Params: IBCPacketforwardParams
208-
tags:
209-
rename:
210-
Query: IBC/Core
211204
- url: ./xion/globalfee/v1/query.swagger.json
212205
operationIds:
213206
rename:

client/ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"types/"
99
],
1010
"scripts": {
11-
"build": "tsc",
11+
"build": "../../scripts/proto-gen.sh --ts",
1212
"test": "jest"
1313
},
1414
"license": "MIT",

client/ts/types/.gitkeep

Whitespace-only changes.

scripts/proto-gen.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,6 @@ deps=$(cat <<EOF
2323
EOF
2424
)
2525

26-
fix=$(cat <<EOF
27-
{
28-
"swagger": "2.0",
29-
"info": {
30-
"title": "Empty",
31-
"version": "0.0.0"
32-
},
33-
"consumes": [
34-
"application/json"
35-
],
36-
"produces": [
37-
"application/json"
38-
],
39-
"paths": {},
40-
"definitions": {}
41-
}
42-
EOF
43-
)
44-
4526
# Install selected dependencies from go.mod
4627
go mod download $deps
4728

@@ -101,10 +82,6 @@ gen_swagger() {
10182
# combine swagger files
10283
# uses nodejs package `swagger-combine`.
10384
# all the individual swagger files need to be configured in `config.json` for merging
104-
mkdir -p ${docs_dir}/static
105-
# proto does not exist, so create an empty file
106-
mkdir -p ${tmp_dir}/packetforward/v1/
107-
echo "$fix" > ${tmp_dir}/packetforward/v1/query.swagger.json
10885
swagger-combine ${docs_dir}/config.yaml \
10986
--format "json" \
11087
--output ${docs_dir}/static/swagger.json \

0 commit comments

Comments
 (0)