Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Script: Mealie #1164

Closed
wants to merge 13 commits into from
Closed

Conversation

TheRealVira
Copy link
Contributor

✍️ Description

Created first draft for mealie.


🛠️ Type of Change

Please check the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
  • New script (a fully functional and thoroughly tested script or set of scripts)

✅ Prerequisites

The following steps must be completed for the pull request to be considered:

  • Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
  • Testing performed (I have thoroughly tested my changes and verified expected functionality.)
  • Documentation updated (I have updated any relevant documentation)

Still in draft form, but I am looking forward to see it running.

@github-actions github-actions bot added new script A change that adds a new script website A change to the website labels Jan 1, 2025
@TheRealVira
Copy link
Contributor Author

Not yet ready for review!


msg_info "Installing Dependencies"
$STD apt-get install -y \
nodejs \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nodejs \
mc \
nodejs \

RELEASE=$(curl -s https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
msg_info "Downloading mealie ${RELEASE}"
wget -q "https://github.com/mealie-recipes/mealie/archive/refs/tags/${RELEASE}.zip"
unzip "${RELEASE}.zip" -d /app/${APP}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you install under /opt/ ?

libldap-common \
libldap-2.5

rm -rf /var/lib/apt/lists/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

msg_info "Downloading mealie ${RELEASE}"
wget -q "https://github.com/mealie-recipes/mealie/archive/refs/tags/${RELEASE}.zip"
unzip "${RELEASE}.zip" -d /app/${APP}
echo "${RELEASE}" >/app/${APP}_version.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "${RELEASE}" >/app/${APP}_version.txt
echo "${RELEASE}" >/opt/${APP}_version.txt

msg_ok "Create user account"

msg_info "Builder Image"
rm -rf /var/lib/apt/lists/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

chmod +x $MEALIE_HOME/run.sh
$MEALIE_HOME/run.sh
msg_ok "Copy Frontend"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add cleanup


# App Default Values
APP="mealie"
var_tags="food"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recipes

check_container_storage
check_container_resources

# Check if installation is present | -f for file, -d for folder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment

msg_ok "Updated System"

# Execute Update
msg_info "Updating ${APP}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to v{RELEASE}

nodejs \
npm \
sudo \
git \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed?

msg_info "Installing Dependencies"
$STD apt-get install -y \
nodejs \
npm \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Install NodeJS and NPM in an seperate Section Like other Scripts

libldap-2.5

mkdir /app
npm install -g yarn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seperate Section

libldap-common \
libldap-2.5

mkdir /app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what?

RELEASE=$(curl -s https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
msg_info "Downloading mealie ${RELEASE}"
wget -q "https://github.com/mealie-recipes/mealie/archive/refs/tags/${RELEASE}.zip"
unzip "${RELEASE}.zip" -d /app/mealie
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/opt

@TheRealVira
Copy link
Contributor Author

Like I said, it's not ready yet for review 😸 Thanks anyways

@TheRealVira TheRealVira closed this Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new script A change that adds a new script website A change to the website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants