From 0b33cae6ac181dd4ba5fc6fa5d399136495dcfee Mon Sep 17 00:00:00 2001 From: Matt Cook Date: Fri, 11 Oct 2024 14:11:32 -0600 Subject: [PATCH] Updates to README, Makefile, and devcontainer to improve onboarding and developer experience (#105) * README additions and trivial markdown format corrections * replace outdated ifconfig command with ip command in sample.env * Add .PHONY entries to Makefile since tasks don't reference local files * add makefile-tools to dev container extensions * add ignore = all to submodules to simplify local development and commit process * correct links in README and correct linter warnings where sensible and easy * clarify .env file setup steps * Revert "add makefile-tools to dev container extensions" This reverts commit 29f3e64dac58d79ea97eb7bc1fa0b3627416051c. * Revert "add ignore = all to submodules to simplify local development and commit process" This reverts commit 788f38cc6f7ac9ccc7082c932946819d1e9bb3b7. * add ignore = all to submodules to prevent commits w/ changes to submodules * add python3 support to dev container * Revert "correct links in README and correct linter warnings where sensible and easy" This reverts commit 081e9dbaa7bd84093f3c634cb12843bae16ec449. * correct link to Contributing Guide in pr template * adjust README internal links to markdown syntax for local functionality * Revert "add ignore = all to submodules to prevent commits w/ changes to submodules" This reverts commit 15a7e44710533e2c9e96f1288ef8161e42eaf235. --- .devcontainer/Dockerfile | 5 +- .devcontainer/devcontainer.json | 3 +- Makefile | 5 ++ README.md | 123 +++++++++++++++++++------------- docs/pull_request_template.md | 2 +- sample.env | 2 +- 6 files changed, 88 insertions(+), 52 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e5b121f1b..7c0fb875b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -74,4 +74,7 @@ RUN apt-get install -y g++ cmake libsasl2-dev libsasl2-modules libssl-dev librdk RUN apt install -y autoconf libtool ENV REDACTION_PROPERTIES_PATH /workspaces/jpo-ode/jpo-cvdp/config/fieldsToRedact.txt -ENV RPM_DEBUG true \ No newline at end of file +ENV RPM_DEBUG true + +# Python3 +RUN apt-get install -y python3 python3-venv python3-pip \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 078e5fb88..79fd809d6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -24,7 +24,8 @@ "redhat.java", "redhat.vscode-commons", "ms-vscode.cpptools", - "ms-vscode.cmake-tools" + "ms-vscode.cmake-tools", + "ms-python.python" ] } }, diff --git a/Makefile b/Makefile index 9ce27b456..f112acb0a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ default: $(info `make rebuild` to stop, delete, and then rebuild the containers) $(info `make clean-build` to rebuild the containers without using the cache) +.PHONY: start start: ifeq ("$(wildcard .env)", "") $(error "ERROR: jpo-ode Environment file `.env` not found in ${PWD}") @@ -25,14 +26,18 @@ ifeq ("$(wildcard ./jpo-utils/.env)", "") endif docker compose build +.PHONY: stop stop: docker compose down +.PHONY: delete delete: docker compose down -v +.PHONY: rebuild rebuild: $(MAKE) stop delete build start +.PHONY: clean-build clean-build: docker compose build --no-cache \ No newline at end of file diff --git a/README.md b/README.md index 765981547..a53071c19 100644 --- a/README.md +++ b/README.md @@ -30,22 +30,22 @@ All stakeholders are invited to provide input to these documents. To provide fee The current version and release history of the JPO-ODE: [ODE Release Notes]() -**Table of Contents** - -1. [Usage Example](#usage-example) -1. [Configuration](#configuration) -1. [Installation](#installation) -1. [File Manifest](#file-manifest) -1. [Development Setup](#development-setup) -1. [Release History](#release-history) -1. [Contact Information](#contact-information) -1. [Contributing](#contributing) -1. [Credits and Acknowledgement](#credits-and-acknowledgement) -1. [Code.gov Registration Info](#codegov-registration-info) -1. [Kubernetes](#kubernetes) -1. [Sonar Cloud](#sonar-token-configuration) ([Documentation](https://sonarcloud.io/documentation/user-guide/user-token/)) -1. [SNMP](#snmp) -1. [GitHub Artifact Usage](#githhub-artifact-usage) +## Table of Contents + +1. [Usage Example](#1-usage-example) +1. [Configuration](#2-configuration) +1. [Installation](#3-installation) +1. [File Manifest](#4-file-manifest) +1. [Development Setup](#5-development-setup) +1. [Release History](#6-release-history) +1. [Contact Information](#7-contact-information) +1. [Contributing](#8-contributing) +1. [Credits and Acknowledgement](#9-credits-and-acknowledgement) +1. [Code.gov Registration Info](#10-codegov-registration-info) +1. [Kubernetes](#11-kubernetes) +1. [Sonar Cloud](#12-sonar-token-configuration) ([Documentation](https://sonarcloud.io/documentation/user-guide/user-token/)) +1. [SNMP](#13-snmp) +1. [GitHub Artifact Usage](#14-gitHub-artifact-usage)