Skip to content

Commit b0cbd63

Browse files
committed
Store git clone separately to rest scripts
1 parent 0bcc7e3 commit b0cbd63

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ deb: $(addsuffix -deb, $(BUILD_ARCHS))
109109

110110
tmp-env:
111111
mkdir -p "tmp/$(VERSION)"
112-
cd "tmp/$(VERSION)" && ../../versions/$(VERSION)/clone.bash
112+
cd "tmp/$(VERSION)" && ../../versions/$(VERSION)/git/clone.bash
113113
cd "tmp/$(VERSION)" && ../../scripts/apply-patches.bash ../../versions/$(VERSION)/server/*.patch
114114
cd "tmp/$(VERSION)" && ../../scripts/strip-cargo.bash
115115
cd "tmp/$(VERSION)" && ../../scripts/resolve-dependencies.bash
116116

117117
tmp-env-client:
118118
mkdir -p "tmp/$(VERSION)-client"
119-
cd "tmp/$(VERSION)-client" && ../../versions/$(VERSION)/clone.bash
119+
cd "tmp/$(VERSION)-client" && ../../versions/$(VERSION)/git/clone.bash
120120
cd "tmp/$(VERSION)-client" && ../../scripts/apply-patches.bash ../../versions/$(VERSION)/server/*.patch ./../versions/$(VERSION)/client*/*.patch
121121
cd "tmp/$(VERSION)-client" && ../../scripts/strip-cargo.bash
122122
cd "tmp/$(VERSION)-client" && ../../scripts/resolve-dependencies.bash
@@ -152,7 +152,7 @@ endif
152152

153153
rm -rf "versions/v$(NEW_VERSION).tmp"
154154
cp -rv "versions/$(VERSION)" "versions/v$(NEW_VERSION).tmp"
155-
"versions/v$(NEW_VERSION).tmp/clone.bash" show-sha $(firstword $(NEW_SHA) $(NEW_VERSION)) > "versions/v$(NEW_VERSION).tmp/versions.tmp"
155+
"versions/v$(NEW_VERSION).tmp/git/clone.bash" show-sha $(firstword $(NEW_SHA) $(NEW_VERSION)) > "versions/v$(NEW_VERSION).tmp/versions.tmp"
156156
mv "versions/v$(NEW_VERSION).tmp/versions.tmp" "versions/v$(NEW_VERSION).tmp/versions"
157157
mv "versions/v$(NEW_VERSION).tmp" "versions/v$(NEW_VERSION)"
158158

versions/v3.4.1/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ FROM toolchain as builder
2828

2929
# Clone all sources
3030
ARG VERSION=master
31-
ADD /versions/${VERSION}/ /patches/
31+
ADD /versions/${VERSION}/git /patches/
3232
RUN /patches/clone.bash
3333

3434
# Apply all patches
3535
ADD /scripts/ /scripts/
36-
RUN /scripts/apply-patches.bash /patches/server/*.patch
36+
ADD /versions/${VERSION}/server /patches/
37+
RUN /scripts/apply-patches.bash /patches/*.patch
3738
RUN /scripts/strip-cargo.bash
3839
RUN /scripts/resolve-dependencies.bash
3940

@@ -47,8 +48,8 @@ RUN cd perlmod/perlmod-bin && dpkg-buildpackage -us -uc -b && dpkg -i ../perlmod
4748

4849
# A pve-common required deps
4950
RUN apt-get -y build-dep $PWD/proxmox-perl-rs/pve-rs
51+
RUN make -C proxmox-perl-rs/common/pkg deb install
5052
RUN make -C proxmox-perl-rs/pve-rs deb
51-
RUN make -C proxmox-perl-rs/common/pkg deb
5253
RUN dpkg -i proxmox-perl-rs/common/pkg/*.deb proxmox-perl-rs/pve-rs/*.deb
5354
RUN apt-get -y build-dep $PWD/pve-common
5455
RUN make -C pve-common dinstall || apt-get -f -y install && make -C pve-common dinstall

versions/v3.4.1/Dockerfile.client

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN git config --global user.email "[email protected]" && \
2020

2121
# Clone all sources
2222
ARG VERSION=master
23-
ADD /versions/${VERSION}/ /patches/
23+
ADD /versions/${VERSION}/git /patches/git
2424
RUN /patches/clone.bash
2525

2626
# Install valid rust toolchain
@@ -35,7 +35,8 @@ RUN \
3535

3636
# Apply all patches
3737
ADD /scripts/ /scripts/
38-
RUN /scripts/apply-patches.bash /patches/server/*.patch /patches/client/*.patch /patches/client-${DOCKER_ARCH}/*.patch
38+
ADD /versions/${VERSION}/server /patches/
39+
RUN /scripts/apply-patches.bash /patches/*.patch
3940
RUN /scripts/strip-cargo.bash
4041
RUN /scripts/experimental-cargo.bash
4142
RUN /scripts/resolve-dependencies.bash
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)