Skip to content

Commit 6912321

Browse files
committed
WIP
1 parent 87af8b4 commit 6912321

File tree

11 files changed

+7733
-1994
lines changed

11 files changed

+7733
-1994
lines changed

Dockerfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.21.5-alpine3.18
1+
ARG GO_VERSION=1.21.6-bookworm
22
ARG GOIMPORTS_VERSION=0.16.1
33
ARG DELVE_VERSION=1.22.0
44

@@ -17,22 +17,28 @@ FROM base AS development
1717
ARG GOIMPORTS_VERSION
1818
ARG DELVE_VERSION
1919

20-
RUN apk add \
21-
bash \
20+
RUN apt update \
21+
&& apt install -y \
2222
curl \
2323
git \
2424
jq \
2525
python3 \
26+
python3-pip \
2627
zsh \
28+
&& apt clean \
29+
&& pip install --break-system-packages \
30+
pyyaml \
2731
&& go install golang.org/x/tools/cmd/goimports@v${GOIMPORTS_VERSION} \
2832
&& go install github.com/go-delve/delve/cmd/dlv@v${DELVE_VERSION}
2933

3034
ARG USER_ID=1000
3135
ENV USER_NAME=default
3236

33-
ENV PROMPT="%B%F{cyan}%n%f@%m:%F{yellow}%~%f %F{%(?.green.red[%?] )}>%f %b"
34-
35-
RUN adduser -D -u $USER_ID ${USER_NAME} \
36-
&& chown -R ${USER_NAME}: /go/pkg
37+
RUN useradd --user-group --create-home --uid ${USER_ID} ${USER_NAME} \
38+
&& chown -R ${USER_NAME}: /go
3739

3840
USER ${USER_NAME}
41+
42+
ENV PROMPT="%B%F{cyan}%n%f@%m:%F{yellow}%~%f %F{%(?.green.red[%?] )}>%f %b"
43+
44+
RUN touch /home/${USER_NAME}/.zshrc

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ shell:
3333
build:
3434
$(EXEC) ./scripts/set-versions.sh $(NETBOX_VERSION) $(NETBOX_DOCKER_VERSION)
3535
./scripts/fetch-spec.sh $$(cat api/netbox_version) $$(cat api/netbox_docker_version)
36-
$(EXEC) ./scripts/fix-spec.sh
36+
$(EXEC) ./scripts/fix-spec.py
3737
./scripts/generate-code.sh
3838
$(EXEC) go mod tidy
3939
$(EXEC) goimports -w .

0 commit comments

Comments
 (0)