Adds aarch64 support

This commit is contained in:
Franck Nijhof 2020-02-15 20:49:34 +01:00
parent 4e10fb9df3
commit dae5fa6bf3
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
3 changed files with 10 additions and 10 deletions

View file

@ -148,9 +148,10 @@ will come up with a better solution for this soon.
## Known issues and limitations
- This add-on currently only supports AMD64 machines, although we hope
we are able to support ARM devices in the future, it is most likely that
most devices will lack the resources to run this add-on (e.g., Raspberry Pi).
- This add-on currently only supports AMD64 and aarch64/ARM64 machines.
Although we support ARM devices, please be aware, that this add-on is quite
heavy to run, and requires quite a bit of RAM. We do not recommended to run
it on devices with less than 4Gb of memory.
- If you get a blank screen (and it worked before), it could be that you changed
your workspace. Reinstalling the add-on will not help since it keeps the data
in your browser. To remove it (in Chrome) open up developer tools (F12),
@ -244,7 +245,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
[aarch64-shield]: https://img.shields.io/badge/aarch64-no-red.svg
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg
[armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg

View file

@ -17,7 +17,7 @@ COPY requirements.txt /tmp/requirements.txt
COPY vscode.extensions /root/vscode.extensions
# Setup base system
ARG BUILD_ARCH
ARG BUILD_ARCH=amd64
RUN \
apt-get update \
\
@ -43,8 +43,10 @@ RUN \
\
&& locale-gen en_US.UTF-8 \
\
&& if [[ "${BUILD_ARCH}" = "aarch64" ]]; then ARCH="arm64"; fi \
&& if [[ "${BUILD_ARCH}" = "amd64" ]]; then ARCH="x86_64"; fi \
&& curl -J -L -o /tmp/code.tar.gz \
"https://github.com/cdr/code-server/releases/download/2.1698/code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz" \
"https://github.com/cdr/code-server/releases/download/2.1698/code-server2.1698-vsc1.41.1-linux-${ARCH}.tar.gz" \
&& tar zxvf \
/tmp/code.tar.gz \
--strip 1 -C /tmp \
@ -110,9 +112,6 @@ RUN \
# Copy root filesystem
COPY rootfs /
# Get the custom extensions
COPY --from=vscode /root/.vscode/extensions /root/.code-server/extensions
# Build arguments
ARG BUILD_DATE
ARG BUILD_REF

View file

@ -8,7 +8,7 @@
"ingress_port": 1337,
"panel_icon": "mdi:visual-studio-code",
"startup": "services",
"arch": ["amd64"],
"arch": ["aarch64", "amd64"],
"boot": "auto",
"hassio_api": true,
"hassio_role": "manager",