-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use latest version and fix release file name in Dockerfile.template #558
Merged
rahul-thakoor
merged 2 commits into
master
from
drskullster/fix-release-name-in-dockerfile
Apr 24, 2024
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
[target.aarch64-unknown-linux-gnu] | ||
[build] | ||
pre-build = [ | ||
"dpkg --add-architecture $CROSS_DEB_ARCH", | ||
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH" | ||
] | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
pre-build = [ | ||
"dpkg --add-architecture $CROSS_DEB_ARCH", | ||
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH" | ||
] | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
pre-build = [ | ||
"dpkg --add-architecture $CROSS_DEB_ARCH", | ||
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH" | ||
] | ||
|
||
[target.i686-unknown-linux-gnu] | ||
pre-build = [ | ||
"dpkg --add-architecture $CROSS_DEB_ARCH", | ||
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH" | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,36 @@ | ||
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian | ||
ARG BALENA_ARCH=%%BALENA_ARCH%% | ||
|
||
FROM balenalib/$BALENA_ARCH-debian | ||
ARG BALENA_ARCH=%%BALENA_ARCH%% | ||
|
||
|
||
RUN install_packages dnsmasq wireless-tools | ||
|
||
# use latest version. If specific version is required, it should be provided as vX.Y.Z, e.g v4.11.37 | ||
ARG VERSION="latest" | ||
|
||
WORKDIR /usr/src/app | ||
|
||
ARG VERSION="4.4.0" | ||
RUN curl -Ls "https://github.com/balena-io/wifi-connect/releases/download/v$VERSION/wifi-connect-v$VERSION-linux-%%BALENA_ARCH%%.tar.gz" \ | ||
| tar -xvz -C /usr/src/app/ | ||
RUN \ | ||
export BASE_URL="https://github.com/balena-os/wifi-connect/releases" &&\ | ||
case $BALENA_ARCH in \ | ||
"aarch64") \ | ||
BINARY_ARCH_NAME="aarch64-unknown-linux-gnu" ;; \ | ||
"amd64") \ | ||
BINARY_ARCH_NAME="x86_64-unknown-linux-gnu" ;;\ | ||
"armv7hf") \ | ||
BINARY_ARCH_NAME="armv7-unknown-linux-gnueabihf" ;;\ | ||
*) \ | ||
echo >&2 "error: unsupported architecture ($BALENA_ARCH)"; exit 1 ;; \ | ||
esac;\ | ||
if [ ${VERSION} = "latest" ]; then \ | ||
export URL_PARTIAL="latest/download" ; \ | ||
else \ | ||
export URL_PARTIAL="download/${VERSION}" ; \ | ||
fi; \ | ||
curl -Ls "$BASE_URL/$URL_PARTIAL/wifi-connect-$BINARY_ARCH_NAME.tar.gz" \ | ||
| tar -xvz -C /usr/src/app/ | ||
|
||
COPY scripts/start.sh . | ||
|
||
CMD ["bash", "start.sh"] | ||
CMD ["bash", "start.sh"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No i386 😬?