mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
✨ Adds aarch64 support
This commit is contained in:
parent
4e10fb9df3
commit
dae5fa6bf3
3 changed files with 10 additions and 10 deletions
|
@ -148,9 +148,10 @@ will come up with a better solution for this soon.
|
||||||
|
|
||||||
## Known issues and limitations
|
## Known issues and limitations
|
||||||
|
|
||||||
- This add-on currently only supports AMD64 machines, although we hope
|
- This add-on currently only supports AMD64 and aarch64/ARM64 machines.
|
||||||
we are able to support ARM devices in the future, it is most likely that
|
Although we support ARM devices, please be aware, that this add-on is quite
|
||||||
most devices will lack the resources to run this add-on (e.g., Raspberry Pi).
|
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
|
- 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
|
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),
|
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
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
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
|
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
||||||
[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg
|
[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg
|
||||||
[armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg
|
[armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg
|
||||||
|
|
|
@ -17,7 +17,7 @@ COPY requirements.txt /tmp/requirements.txt
|
||||||
COPY vscode.extensions /root/vscode.extensions
|
COPY vscode.extensions /root/vscode.extensions
|
||||||
|
|
||||||
# Setup base system
|
# Setup base system
|
||||||
ARG BUILD_ARCH
|
ARG BUILD_ARCH=amd64
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
\
|
\
|
||||||
|
@ -43,8 +43,10 @@ RUN \
|
||||||
\
|
\
|
||||||
&& locale-gen en_US.UTF-8 \
|
&& 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 \
|
&& 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 \
|
&& tar zxvf \
|
||||||
/tmp/code.tar.gz \
|
/tmp/code.tar.gz \
|
||||||
--strip 1 -C /tmp \
|
--strip 1 -C /tmp \
|
||||||
|
@ -110,9 +112,6 @@ RUN \
|
||||||
# Copy root filesystem
|
# Copy root filesystem
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
# Get the custom extensions
|
|
||||||
COPY --from=vscode /root/.vscode/extensions /root/.code-server/extensions
|
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG BUILD_REF
|
ARG BUILD_REF
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"ingress_port": 1337,
|
"ingress_port": 1337,
|
||||||
"panel_icon": "mdi:visual-studio-code",
|
"panel_icon": "mdi:visual-studio-code",
|
||||||
"startup": "services",
|
"startup": "services",
|
||||||
"arch": ["amd64"],
|
"arch": ["aarch64", "amd64"],
|
||||||
"boot": "auto",
|
"boot": "auto",
|
||||||
"hassio_api": true,
|
"hassio_api": true,
|
||||||
"hassio_role": "manager",
|
"hassio_role": "manager",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue