From 510fb0996df14766826b520a0322faf9cf876316 Mon Sep 17 00:00:00 2001 From: Alexander Malkov Date: Thu, 11 Apr 2024 15:32:03 +0300 Subject: [PATCH] feat build: update userver and docker image --- CMakeLists.txt | 6 +++--- docker-compose.yml | 11 +---------- third_party/userver | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bead3e..9b67dde 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ add_library(${PROJECT_NAME}_objs OBJECT src/hello.hpp src/hello.cpp ) -target_link_libraries(${PROJECT_NAME}_objs PUBLIC userver-core) +target_link_libraries(${PROJECT_NAME}_objs PUBLIC userver::core) # The Service @@ -29,7 +29,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${PROJECT_NAME}_objs) add_executable(${PROJECT_NAME}_unittest src/hello_test.cpp ) -target_link_libraries(${PROJECT_NAME}_unittest PRIVATE ${PROJECT_NAME}_objs userver-utest) +target_link_libraries(${PROJECT_NAME}_unittest PRIVATE ${PROJECT_NAME}_objs userver::utest) add_google_tests(${PROJECT_NAME}_unittest) @@ -37,7 +37,7 @@ add_google_tests(${PROJECT_NAME}_unittest) add_executable(${PROJECT_NAME}_benchmark src/hello_benchmark.cpp ) -target_link_libraries(${PROJECT_NAME}_benchmark PRIVATE ${PROJECT_NAME}_objs userver-ubench) +target_link_libraries(${PROJECT_NAME}_benchmark PRIVATE ${PROJECT_NAME}_objs userver::ubench) add_google_benchmark_tests(${PROJECT_NAME}_benchmark) diff --git a/docker-compose.yml b/docker-compose.yml index 83737a0..64f66e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,22 +2,13 @@ version: "2.3" services: service_template-container: - image: ghcr.io/userver-framework/ubuntu-userver-build-base:v1 + image: ghcr.io/userver-framework/ubuntu-22.04-userver-base-ci:latest privileged: true network_mode: bridge environment: - PREFIX=${PREFIX:-~/.local} - - CC - CCACHE_DIR=/service_template/.ccache - - CCACHE_HASHDIR - - CCACHE_NOHASHDIR - - CCACHE_PREFIX - - CCACHE_SIZE - - CMAKE_OPTS - CORES_DIR=/cores - - CXX - - MAKE_OPTS - - CMAKE_COMMON_FLAGS volumes: - .:/service_template:rw - ./third_party/userver/tools/docker:/tools:ro diff --git a/third_party/userver b/third_party/userver index 320656f..2846de7 160000 --- a/third_party/userver +++ b/third_party/userver @@ -1 +1 @@ -Subproject commit 320656f015cef1a0e91a714dcb41aa543c97631f +Subproject commit 2846de78187610740fd29d81195c06998ed6cdce