Skip to content

Commit aab3053

Browse files
committed
fix: use TARGETARCH for multi-arch pig package installation
1 parent 343f395 commit aab3053

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
9+
[*.{yml,yaml,md}]
10+
indent_style = space
11+
indent_size = 2
12+
quote_type = double

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ENV PG17BIN=/usr/lib/postgresql/17/bin
102102
ENV PG_VERSION=17
103103

104104
RUN curl -fsSL https://repo.pigsty.io/pig | bash && \
105-
dpkg -i /tmp/pig_0.6.1-1_arm64.deb && \
105+
dpkg -i /tmp/pig_0.6.1-1_${TARGETARCH}.deb && \
106106
/usr/bin/pig repo add pigsty --update && \
107107
for ver in 14 15 16 17; do \
108108
/usr/bin/pig install -y --version $ver pgsodium pg_stat_statements pg_partman pg_jsonschema pg_hashids pg_tle pgjwt; \

0 commit comments

Comments
 (0)