-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from gchq/4.0
4.0
- Loading branch information
Showing
11 changed files
with
181 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ############################################################################# | ||
# Relies on docker and its buildx plugin to do the svg generation and to run | ||
# Script to run the documentation site | ||
# Hugo. | ||
# ############################################################################# | ||
|
||
set -e | ||
|
||
setup_echo_colours() { | ||
# Exit the script on any error | ||
set -e | ||
|
||
# shellcheck disable=SC2034 | ||
if [ "${MONOCHROME}" = true ]; then | ||
RED='' | ||
GREEN='' | ||
YELLOW='' | ||
BLUE='' | ||
BLUE2='' | ||
DGREY='' | ||
NC='' # No Colour | ||
else | ||
RED='\033[1;31m' | ||
GREEN='\033[1;32m' | ||
YELLOW='\033[1;33m' | ||
BLUE='\033[1;34m' | ||
BLUE2='\033[1;34m' | ||
DGREY='\e[90m' | ||
NC='\033[0m' # No Colour | ||
fi | ||
} | ||
|
||
debug_value() { | ||
local name="$1"; shift | ||
local value="$1"; shift | ||
|
||
if [ "${IS_DEBUG}" = true ]; then | ||
echo -e "${DGREY}DEBUG ${name}: ${value}${NC}" | ||
fi | ||
} | ||
|
||
debug() { | ||
local str="$1"; shift | ||
|
||
if [ "${IS_DEBUG}" = true ]; then | ||
echo -e "${DGREY}DEBUG ${str}${NC}" | ||
fi | ||
} | ||
|
||
check_prerequisites() { | ||
if ! docker version >/dev/null 2>&1; then | ||
echo -e "${RED}ERROR: Docker is not installed. Please install Docker or Docker Desktop.${NC}" | ||
exit 1 | ||
fi | ||
|
||
if ! docker buildx version >/dev/null 2>&1; then | ||
echo -e "${RED}ERROR: Docker buildx plugin is not installed. Please install it. See https://github.com/docker/buildx#installing${NC}" | ||
exit 1 | ||
fi | ||
} | ||
|
||
main() { | ||
IS_DEBUG=false | ||
local repo_root | ||
repo_root="$(git rev-parse --show-toplevel)" | ||
pushd "${repo_root}" > /dev/null | ||
|
||
setup_echo_colours | ||
check_prerequisites | ||
|
||
echo -e "${GREEN}Running the Hugo server on localhost:1313${NC}" | ||
|
||
./container_build/runInHugoDocker.sh server | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
* Issue **#86** : Change `PermittedOrganisation` to be unbounded within `PermittedOrganisations`. | ||
|
||
|
||
```sh | ||
# ******************************************************************************** | ||
# Issue title: `PermittedOrganisation` is 1-1 rather than 1-* | ||
# Issue link: https://github.com/gchq/event-logging-schema/issues/86 | ||
# ******************************************************************************** | ||
|
||
# ONLY the top line will be included as a change entry in the CHANGELOG. | ||
# The entry should be in GitHub flavour markdown and should be written on a SINGLE | ||
# line with no hard breaks. You can have multiple change files for a single GitHub issue. | ||
# The entry should be written in the imperative mood, i.e. 'Fix nasty bug' rather than | ||
# 'Fixed nasty bug'. | ||
# | ||
# Examples of acceptable entries are: | ||
# | ||
# | ||
# * Issue **123** : Fix bug with an associated GitHub issue in this repository | ||
# | ||
# * Issue **namespace/other-repo#456** : Fix bug with an associated GitHub issue in another repository | ||
# | ||
# * Fix bug with no associated GitHub issue. | ||
``` |
Oops, something went wrong.