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

Use docker #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Use docker #29

wants to merge 3 commits into from

Conversation

diivm
Copy link
Collaborator

@diivm diivm commented Aug 21, 2021

  • add Dockerfile
    • use in pytest.yml
    • not used in black.yml: only needs the formatter, is faster to just keep as is.

@diivm diivm force-pushed the devel/docker branch 2 times, most recently from 384b6fc to 7fe0981 Compare August 21, 2021 22:20
@diivm diivm marked this pull request as ready for review August 21, 2021 22:22
.github/workflows/pytest.yml Outdated Show resolved Hide resolved
Dockerfile Outdated
# Install libclang via development branch on https://apt.llvm.org/
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | tee -a /etc/apt/sources.list
RUN echo 'deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | tee -a /etc/apt/sources.list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are the sourced needed? To install libclang-12-dev?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To install a development branch basically.
v12 is stable now, but we'll need this when we want to bump to v14 (currently developmental).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment that please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, don't use sources.list, instead create a new file in sources.list.d

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, this method was to install stable branches that were not directly accessible via apt-get install, not for developmental branches. Hence, I've removed this block.

Dockerfile Outdated Show resolved Hide resolved
Comment on lines +6 to +8
RUN apt-get update -y && apt-get install -y python3-pip libclang-12-dev python3-clang-12

RUN pip install -r requirements.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge?

Copy link
Member

@kunaltyagi kunaltyagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

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

Successfully merging this pull request may close these issues.

2 participants