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

Fazer o Packer buildar o qemu no Github Actions #56

Open
1 of 3 tasks
lucaslehnen opened this issue Dec 22, 2021 · 1 comment
Open
1 of 3 tasks

Fazer o Packer buildar o qemu no Github Actions #56

lucaslehnen opened this issue Dec 22, 2021 · 1 comment
Assignees

Comments

@lucaslehnen
Copy link
Owner

lucaslehnen commented Dec 22, 2021

Problema/Proposta

Fazendo o Packer buildar no CI, assim que o template for modificado, consigo aplicar o versionamento e fazer o "deploy" da imagem no S3 por exemplo.

Detalhes

Pelo que vi, o Github Actions não tem a possibilidade de executar containers com privileged actions/container-action#2 , isso pode acabar exigindo outra maneira de fazer essa automação.

Tarefas

@lucaslehnen lucaslehnen self-assigned this Dec 22, 2021
@lucaslehnen
Copy link
Owner Author

O Dockerfile abaixo gerou a imagem tchecode/packer-qemu. Funcionou rodando diretamente, porém duas coisas essenciais:

FROM debian:bullseye-slim

RUN apt-get update && apt-get install gnupg2 curl software-properties-common --yes && \
    curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - && \
    apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com focal main" && \
    apt-get update && apt-get install packer --yes && \
    apt remove gnupg2 curl software-properties-common --yes && apt autoremove --yes && apt clean

RUN apt install --yes --no-install-recommends \
        qemu-system-x86 \
        qemu-utils \
    && apt clean

Tirei por base estes repositórios:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant