Skip to content
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

[feature] Entorno de Desarrollo para rPI #12

Merged
merged 4 commits into from Sep 23, 2020
Merged

[feature] Entorno de Desarrollo para rPI #12

merged 4 commits into from Sep 23, 2020

Conversation

MinusFour
Copy link
Contributor

@MinusFour MinusFour commented Sep 23, 2020

De acuerdo al issue #11

Tuve que quitar la dependencia de node-sass y remplazarla por sass. No se lleva muy bien con arm, no hay binarios disponibles para esa plataforma. De todas formas ya tenía tiempo de cambiar a dart-sass puesto que node-sass no ha recibido soporte de las nuevas funciones y sintaxis de sass. node-sass también esta próximo a ser marcado como deprecated.

También tuve que hacer un pin sobre fsevents. Hay varios issues acerca de esto. El más relevante es este issue. La última versión mencionada no recompila el binario si no es necesario (solo se compila en mac).

He agregado también una imagen de docker para armv6 la cual la pueden bajar ustedes y correr en sus equipos x86 si tienen emulación (con qemu). La pueden descargar de GHCR pero necesitan un PAT para hacer el login. La idea es que las maquinas de Github hagan el build, creen la imagen, inicien session en la RPI y corran la imagen.

He activado "Github Actions" para este repositorio (tenemos 2000 minutos gratuitos al mes). Cualquier persona con permisos de escritura sobre el repositorio puede hacer push de un workflow en el que pueda correr lo que quiera así que es muy importante no dar permisos de escritura sobre este repositorio (los admins tienen permisos de escritura sobre todos los repositorios en la organización).

El host al cual pueden acceder para ver los últimos avances es: http://elhacker.minusfour.net:8080.

@drvy @ehnwebmaster

node-sass is being deprecated and sass is recomending dart-sass instead.
fsevents@1.x is trying to build itself with node-gyp because there's no
builds for latest node versions. Pinned version does not build the
dependency if it's not needed by the system (e.g. not mac).
It uses a docker image with alpine/node for arm32v6. Docker image has to
install git to avoid problems with husky (shouldn't be necessary in the
future). Image gets tagged for ghcr.io since docker registry is moving
there.

docker-compose file will probably be replaced with x86/amd64 in the
future. It does run under those systems but emulation is needed.
It builds the image using buildx, uploads it to GHCR.io, sets up rPI
credentials, pulls the image from GHCR.io and finally runs it with
docker-compose.
Ubuntu 18.04 has an older version of docker-compose that does not work
with SSH. Ubuntu 20.04 should work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant