Skip to content

Use docker#29

Open
diivm wants to merge 3 commits intoPointCloudLibrary:masterfrom
diivm:devel/docker
Open

Use docker#29
diivm wants to merge 3 commits intoPointCloudLibrary:masterfrom
diivm:devel/docker

Conversation

@diivm
Copy link
Copy Markdown
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
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Merge?

Copy link
Copy Markdown
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