Skip to content

Commit a31bb45

Browse files
committed
MEDIUM: Add GOMEMLIMIT support and switch Go runtime to 1.19
1 parent e1f2299 commit a31bb45

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.17-alpine AS builder
15+
FROM golang:1.19-alpine AS builder
1616

1717
RUN apk --no-cache add git openssh
1818

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/with-contenv sh
22

3+
MEMLIMIT=$(free -m | awk '/Mem:/ {print int($2 / 3)}')
4+
export GOMEMLIMIT="${MEMLIMIT}MiB"
5+
36
exec /haproxy-ingress-controller --with-s6-overlay ${EXTRA_OPTIONS}

0 commit comments

Comments
 (0)