[app service linux] Are apt-get packages persistent across multiple re-deployments?

mithun shanbhag 26 Reputation points
2019-12-20T16:55:09.51+00:00

If I install any packages via apt-get on app service for linux (by connecting via SSH), will they be persistent across multiple re-deployments? Anyone know?

FWIW: I'm simply zip-deploying my app to a B2 plan. Am not using containers.

https://video2.skills-academy.com/en-us/azure/app-service/containers/app-service-linux-ssh-support

Thanks,
-Mithun

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,757 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Joffrey NURIT 211 Reputation points
    2019-12-22T23:11:38.623+00:00

    Hello Mithunshanbhag,

    Yes, the configuration persist. You can try to restart your app service: your package still on your vm.
    Deployment doesn't change anything. When you deploy your application, basically, you only:

    • send your package
    • Erase your old files (if you configure "delete" option)
    • Unzip the package
    • restart the service

    The system doesn't change anything and remain the same.

    1 person found this answer helpful.

  2. Joffrey NURIT 211 Reputation points
    2019-12-25T22:02:35.533+00:00

    If i understand correctly,

    1. You restart app: your package is available
    2. You deploy your app: package not found
      It's pretty weird...
      When you use the package, you know where is installed?
      You can find the package with the command "find / -name package-name"

    I see this configuration:
    removeAdditionalFilesFlag: true
    excludeFilesFromAppDataFlag: true
    it's a basic configuration, but if I understand what you say, it's possible the package was "erased" when you deploy your app BECAUSE of this configuration

    You can test with:

    • Deploy with this configuration to "false"
    • if with this value to false, the package still here, you can move / copy the package to another location to not erase this with the next deploy

    Another solution: use your script / your CI to execute the command and reinstall the package if needed
    For exemple: "apt install XXX --yes"


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.