Skip to content

Commit

Permalink
feat(entrypoint): update entrypoint wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiss committed May 26, 2024
1 parent 3007781 commit f0d02df
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ echo "Starting entrypoint.sh..."
echo "Listing mounted volumes:"
df -h

# Ensure the /efs/mnt directory is mounted
if mountpoint -q /efs/mnt; then
echo "/efs/mnt is mounted."
# Ensure the /mnt/efs directory is mounted
if mountpoint -q /mnt/efs; then
echo "/mnt/efs is mounted."
else
echo "Error: /efs/mnt is not mounted." >&2
echo "Error: /mnt/efs is not mounted." >&2
exit 1
fi

# Ensure the /db directory exists
mkdir -p /efs/mnt/db
# Ensure the /mnt/efs/db directory exists
mkdir -p /mnt/efs/db

# Ensure the /db/test directory exists
mkdir -p /efs/mnt/db/test
# Ensure the /mnt/efs/db/test directory exists
mkdir -p /mnt/efs/db/test

# Check if /db is writable
if [ -w /efs/mnt/db ]; then
echo "/efs/mnt/db is writable."
# Check if /mnt/efs/db is writable
if [ -w /mnt/efs/db ]; then
echo "/mnt/efs/db is writable."
else
echo "Error: /efs/mnt/db is not writable." >&2
echo "Error: /mnt/efs/db is not writable." >&2
exit 1
fi

Expand All @@ -48,18 +48,18 @@ EOF
echo "Generated messaging.json with the following content:"
cat crates/solis/messaging.json

# Display the contents of the /efs/mnt directory
echo "Contents of /efs/mnt directory:"
ls -l /efs/mnt
# Display the contents of the /mnt/efs directory
echo "Contents of /mnt/efs directory:"
ls -l /mnt/efs

# Display the contents of the /efs/mnt/db directory
echo "Contents of /efs/mnt/db directory:"
ls -l /efs/mnt/db
# Display the contents of the /mnt/efs/db directory
echo "Contents of /mnt/efs/db directory:"
ls -l /mnt/efs/db

# Display the contents of the crates/solis directory
echo "Contents of crates/solis directory:"
ls -l crates/solis

# Start the application
echo "Starting the solis application..."
exec ./target/release/solis --db-dir /efs/mnt/db --messaging crates/solis/messaging.json --dev
exec ./target/release/solis --db-dir /mnt/efs/db --messaging crates/solis/messaging.json --dev

0 comments on commit f0d02df

Please sign in to comment.