Commit 51ac1aec authored by Valentin Reis's avatar Valentin Reis

Merge branch 'master' into 'ci-applications'

# Conflicts:
#   .gitlab-ci.yml
parents 22c040ed 6477e00f
Pipeline #5654 failed with stages
in 1 minute and 43 seconds
......@@ -3,14 +3,15 @@ variables:
EXTRA : "--containers ./."
stages:
- quality
- build
- test
- applications
- quality
include:
- https://xgitlab.cels.anl.gov/argo/argopkgs/raw/master/gitlab-ci/argonix.yml
- https://xgitlab.cels.anl.gov/argo/argopkgs/raw/master/gitlab-ci/components.yml
- https://xgitlab.cels.anl.gov/argo/argopkgs/raw/master/gitlab-ci/integration.yml
- https://xgitlab.cels.anl.gov/argo/argopkgs/raw/master/gitlab-ci/applications.yml
#- https://xgitlab.cels.anl.gov/argo/argopkgs/raw/master/gitlab-ci/repoquality.yml
- https://xgitlab.cels.anl.gov/argo/argopkgs/raw/master/gitlab-ci/repoquality.yml
src/*.cpp
src/*.hpp
Judicael Zounmevo <zounmevo@gmail.com>
Swann Perarnau <swann@anl.gov>
Kamil Iskra <iskra@mcs.anl.gov>
Valentin Reis <vreis@anl.gov>
Contributing to The Project
===========================
The following is a set of guidelines for contributing to this project. These
are guidelines, not rules, so use your best judgement and feel free to propose
changes.
## Commit Messages Styleguide
- use present tense, imperative mood
- reference issues and merge requests
- you can use [Gitlab Flavored Markdown](https://docs.gitlab.com/ee/user/markdown.html)
If you want some help, here is a commit template that you can add to your git
configuration. Save it to a `my-commit-template.txt` file and use `git config
commit.template my-config-template.txt` to use it automatically.
```
# [type] If applied, this commit will... ---->|
# Why this change
# Links or keys to tickets and others
# --- COMMIT END ---
# Type can be
# feature
# fix (bug fix)
# doc (changes to documentation)
# style (formatting, missing semi colons, etc; no code change)
# refactor (refactoring production code)
# test (adding missing tests, refactoring tests; no production code change)
# --------------------
# Remember to
# Separate subject from body with a blank line
# Limit the subject line to 50 characters
# Capitalize the subject line
# Do not end the subject line with a period
# Use the imperative mood in the subject line
# Wrap the body at 72 characters
# Use the body to explain what and why vs. how
# Can use multiple lines with "-" for bullet points in body
# --------------------
```
## Signoff on Contributions:
The project uses the [Developer Certificate of
Origin](https://developercertificate.org/) for copyright and license
management. We ask that you sign-off all of your commits as certification that
you have the rights to submit this work under the license of the project (in
the `LICENSE` file) and that you agree to the DCO.
To signoff commits, use: `git commit --signoff`.
To signoff a branch after the fact: `git rebase --signoff`
Copyright (c) 2019, UChicago Argonne, LLC. All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AM_CXXFLAGS = -ggdb -O0
bin_PROGRAMS = argo_nodeos_config
argo_nodeos_config_SOURCES = argo_nodeos_config.cpp config_reader.cpp node_settup_changer.cpp \
node_setup_reader.cpp argo_container.cpp container_manager.cpp \
argo_nodeos_config_SOURCES = argo_nodeos_config.cpp \
argo_container.cpp container_manager.cpp \
utils.cpp acl.hpp ilogger.cpp stderrlogger.cpp filelogger.cpp \
syslogger.cpp aggregatelogger.cpp log_option_parser.cpp \
resource_locker.cpp trace.cpp \
iresource_controller.cpp\
iresource_controller_status.cpp\
string_parser.cpp\
int_list_parser.cpp\
nodeos_exceptions.cpp\
config_reader.hpp node_setup_changer.hpp node_setup_reader.hpp \
argo_container.hpp container_manager.hpp utils.hpp acl.cpp \
common.hpp defaults.hpp ilogger.hpp stderrlogger.hpp filelogger.hpp \
syslogger.hpp aggregatelogger.hpp headers.hpp log_option_parser.hpp \
trace.hpp resource_locker.hpp \
iresource_controller.hpp\
iresource_controller.hpp\
resource_controller_type.hpp\
string_parser.hpp\
int_list_parser.hpp\
nodeos_exceptions.hpp\
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "acl.hpp"
#include "utils.hpp"
#include <sys/types.h>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __ACL_H__
#define __ACL_H__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "aggregatelogger.hpp"
Aggregatelogger::Aggregatelogger(uid_t ruid):
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __AGGREGATELOGGER_HPP__
#define __AGGREGATELOGGER_HPP__
#include "ilogger.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "argo_container.hpp"
#include <algorithm>
#include <pwd.h>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __COMPUTE_CONTAINER_HPP__
#define __COMPUTE_CONTAINER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "headers.hpp"
#include "common.hpp"
#include "aggregatelogger.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __COMMON_HPP__
#define __COMMON_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "container_manager.hpp"
#include "common.hpp"
#include <sys/mount.h>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __CONTAINER_MANAGER_HPP__
#define __CONTAINER_MANAGER_HPP__
#include "utils.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __DEFAULTS_HPP__
#define __DEFAULTS_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "filelogger.hpp"
#include "common.hpp"
#include <string>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __FILELOGGER_HPP__
#define __FILELOGGER_HPP__
#include "ilogger.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __HEADERS_HPP__
#define __HEADERS_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "ilogger.hpp"
#include "utils.hpp"
#include <sstream>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __LOGGER_HPP__
#define __LOGGER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "int_list_parser.hpp"
#include "utils.hpp"
#include <cstdlib>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __INT_LIST_PARSER_HPP__
#define __INT_LIST_PARSER_HPP__
#include <string>
......
#include "iparser.hpp"
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __IPARSER_HPP__
#define __IPARSER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __IRESOURCE_CONTROLLER_HPP__
#define __IRESOURCE_CONTROLLER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "log_option_parser.hpp"
#include "utils.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __LOG_OPTION_PARSER_HPP__
#define __LOG_OPTION_PARSER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __NODEOS_EXCEPTIONS_HPP__
#define __NODEOS_EXCEPTIONS_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "resource_locker.hpp"
#include "utils.hpp"
#include "common.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __RESOURCE_LOCKER_HPP__
#define __RESOURCE_LOCKER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __RESOURCE_OWNERSHIP_HPP__
#define __RESOURCE_OWNERSHIP_HPP__
#include "utils.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __RESOURCE_OWNERSHIP_SET_HPP__
#define __RESOURCE_OWNERSHIP_SET_HPP__
#include "resource_ownership.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __RESOURCE_TYPE_CPP_H__
#define __RESOURCE_TYPE_CPP_H__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "stderrlogger.hpp"
#include "common.hpp"
#include <iostream>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __STDERRLOGGER_HPP__
#define __STDERRLOGGER_HPP__
#include "ilogger.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "string_parser.hpp"
#include "utils.hpp"
#include <stdexcept>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __STRING_PARSER_HPP__
#define __STRING_PARSER_HPP__
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "syslogger.hpp"
#include <cassert>
#include "utils.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __SYSLOGGER_HPP__
#define __SYSLOGGER_HPP__
#include "ilogger.hpp"
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "trace.hpp"
#include <cassert>
bitmask_t __trace_mask = 0;
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __TRACE_HPP__
#define __TRACE_HPP__
#include <stdarg.h>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#include "utils.hpp"
#include <vector>
......
/*******************************************************************************
* Copyright 2019 UChicago Argonne, LLC.
* (c.f. AUTHORS, LICENSE)
*
* This file is part of the Argo containers project.
* For more info, see https://xgitlab.cels.anl.gov/argo/containers
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
#ifndef __UTILS_CPP_H__
#define __UTILS_CPP_H__
#include <vector>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment