mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-01 03:05:49 +01:00
* Add devcontainer (generic add-on devcontainer also available at https://github.com/issacg/hassio-addon-devcontainer)
* remove example code (https://github.com/home-assistant/hassio-addons/pull/1040#discussion_r374373037)
* Run start_hassio.sh from inside .devcontainer (https://github.com/home-assistant/hassio-addons/pull/1040#discussion_r374373323)
* Revert "Fix HA container"
This reverts commit 7062117d46.
* Fix lastboot
35 lines
1.0 KiB
Docker
35 lines
1.0 KiB
Docker
FROM ubuntu:18.04
|
|
|
|
WORKDIR /workspaces
|
|
|
|
# Default ENV
|
|
ENV LANG C.UTF-8
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
# Install docker
|
|
# https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
curl \
|
|
dbus \
|
|
software-properties-common \
|
|
gpg-agent \
|
|
git \
|
|
jq \
|
|
sudo \
|
|
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \
|
|
&& add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
docker-ce \
|
|
docker-ce-cli \
|
|
containerd.io
|
|
# This is a development container. Don't bother to clean up apt cache, this way we have it handy later
|
|
|
|
# Generate a machine-id for this container
|
|
RUN rm /etc/machine-id && dbus-uuidgen --ensure=/etc/machine-id
|
|
|
|
ENV DEBIAN_FRONTEND=dialog |