#!/bin/bash
#
# Copyright (c) 2019-2021 Oracle and/or its affiliates. All rights reserved.
# Licensed under the GNU General Public License Version 3 as shown at https://www.gnu.org/licenses/gpl-3.0.txt.

IMAGE=container-registry.oracle.com/olcne/nginx:1.17.7

if [ -f "/etc/olcne-nginx/image" ]; then
	. "/etc/olcne-nginx/image"
fi

exec podman run --rm --network=host --volume=/etc/olcne-nginx:/etc/nginx ${IMAGE}
