Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker Compose Problem

Featured Replies

I have a dockerfile that is successfully running, but is having an issue with the scripts and the scripts are not running cause they are not found:
I don't understand the issue. The run.sh script is located in the same folder as the dockerfile and docker-compose.yml. Why would it not be available from within the container. Or why would it not be making it over to the container?
The only thing in the log is:
exec /run.sh: no such file or directory

Here is the dockerfile:

# Use Ubuntu 24.04 (Noble Numbat) as the base image

ARG P4_BASEIMAGE=ubuntu:24.04

FROM $P4_BASEIMAGE AS perforce-base

MAINTAINER Van

ENV container docker

# Install required system dependencies, including gnupg for handling GPG keys

RUN apt-get update && apt-get install -y \

cron \

tar \

gzip \

curl \

openssl \

sudo \

debianutils \

gnupg2 \

lsb-release && \

rm -rf /var/lib/apt/lists/*

# Download and install the Perforce GPG key directly into the APT keyring

RUN curl -fsSL https://package.perforce.com/perforce.pubkey | gpg --dearmor -o /usr/share/keyrings/perforce-archive-keyring.gpg

# Add Perforce repository and ensure it's signed with the correct key

RUN echo "deb [signed-by=/usr/share/keyrings/perforce-archive-keyring.gpg] https://package.perforce.com/apt/ubuntu noble release" > /etc/apt/sources.list.d/perforce.list

# Update package lists and install Perforce server and CLI

RUN apt-get update && \

apt-get install -y p4-server p4-cli && \

rm -rf /var/lib/apt/lists/*

# Install necessary utilities like gosu, tini, and s6-overlay with updated download links

RUN curl -fsSL https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64 -o /usr/local/bin/gosu \

&& curl -fsSL https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64.asc -o /usr/local/bin/gosu.asc \

&& gpg --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \

&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \

&& rm /usr/local/bin/gosu.asc \

&& chmod +x /usr/local/bin/gosu \

&& gosu nobody true

# ENTRYPOINT ["/init"]

# Make sure the run.sh script is executable

ADD ./run.sh /

RUN chmod +x /run.sh

# Use /run.sh as the entry point to start the container

ENTRYPOINT ["/run.sh"]

FROM perforce-base AS perforce-server

MAINTAINER Van

# Use the same P4_VERSION build argument

ARG P4_VERSION=2025.1

# Install Perforce server and CLI with the version from the build argument

RUN apt-get update && \

apt-get install -y p4-server p4-cli && \

rm -rf /var/lib/apt/lists/*

EXPOSE 1666

ENV NAME p4depot

ENV P4CONFIG .p4config

ENV DATAVOLUME /data

ENV P4PORT 1666

ENV P4USER p4admin

VOLUME ["$DATAVOLUME"]

ADD ./p4-users.txt /root/

ADD ./p4-groups.txt /root/

ADD ./p4-protect.txt /root/

ADD ./typemap.txt /root/

ADD ./setup-perforce.sh /usr/local/bin/

# Default command to run the server via run.sh or p4d

#CMD ["/run.sh"]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.