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

Created docker pipeline #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.20)
project(supervoxel)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

file(GLOB_RECURSE HEADER_FILES
codelibrary
)

file(GLOB_RECURSE SOURCE_FILES
codelibrary/*.cpp
)

add_executable(supervoxel main.cc ${SOURCE_FILES})
target_include_directories(supervoxel PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:22.10
RUN apt update
RUN apt install -y build-essential cmake
COPY . code
WORKDIR code
RUN mkdir build
WORKDIR build
RUN cmake .. && cmake --build .
# RUN gcc main.cc -o supervoxel
1 change: 1 addition & 0 deletions codelibrary/base/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <cassert>
#include <climits>
#include <functional>
#include <numeric>

#include "codelibrary/base/array.h"

Expand Down
4 changes: 2 additions & 2 deletions main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ void WritePoints(const char* filename,
// system(filename);
}

int main() {
int main(int argc, char** argv) {
LOG_ON(INFO);

const std::string filename = "test.xyz";
const std::string filename = argv[1];

cl::Array<cl::RPoint3D> points;
cl::Array<cl::RGB32Color> colors;
Expand Down