@ -1,7 +1,7 @@
LIBERO_IMAGE := " libero"
MICROCHIP_TOOLS_NETWORK := " microchip_tools_network"
MICROCHIP_TOOLS_POD := " microchip_tools_pod"
LIBERO_CONTAINER :: = " localhost /$( LIBERO_IMAGE ) :latest "
LIBERO_IMAGE := libero
MICROCHIP_TOOLS_NETWORK := microchip_tools_network
MICROCHIP_TOOLS_POD := microchip_tools_pod
LIBERO_CONTAINER :: = localhost /$( LIBERO_IMAGE ) :latest
C_RED = \0 33[ 0; 31m
C_YELLOW = \0 33[ 0; 33m
@ -12,17 +12,18 @@ build:
podman build . -t libero --volume= " ${ PWD } /installers:/opt/microchip/installers "
daemon :
podman run -dt --rm --replace --name libero \
--volume= "/etc/localtime:/etc/localtime" --volume= " ${ PWD } /licenses:/opt/microchip/licenses " \
${ LIBERO_LICENSER_CONTAINER } /opt/microchip/scripts/entrypoint
podman run -dt --replace --name libero \
--net host \
-v "/etc/localtime:/etc/localtime" \
-v " ${ PWD } /licenses:/opt/microchip/licenses " \
-v " ${ XAUTHORITY } :/home/libby/.Xauthority:ro " \
-v "/tmp/.X11-unix:/tmp/.X11-unix:ro" \
-e "DISPLAY" --security-opt label = type:container_runtime_t \
${ LIBERO_CONTAINER } /opt/microchip/scripts/entrypoint
# launch a bash shell in the libero container
debug :
podman exec -it --volume= "/etc/localtime:/etc/localtime" \
-v " ${ XAUTHORITY } : ${ XAUTHORITY } :ro " -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e "DISPLAY" --security-opt label = type:container_runtime_t ${ LIBERO_CONTAINER }
podman exec -it -e "DISPLAY" libero bash
run :
podman exec -it --volume= "/etc/localtime:/etc/localtime" \
-v " ${ XAUTHORITY } : ${ XAUTHORITY } :ro " -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e "DISPLAY" --security-opt label = type:container_runtime_t ${ LIBERO_CONTAINER } libero
podman exec -it ${ LIBERO_CONTAINER } libero