run.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. # Copyright 2016 - 2020 Crunchy Data Solutions, Inc.
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. docker-compose up -d
  15. sleep 2
  16. # Uue rocker image juures vajalikud installimised.
  17. cont_name=shiny-paberkrohv
  18. docker exec -ti -u 0 ${cont_name} sh -c ' \
  19. apt-get update && \
  20. apt-get install -y --no-install-recommends \
  21. libpq-dev libcairo2-dev libxt-dev libxml2'
  22. docker exec -ti shiny-paberkrohv bash -c "
  23. apt update
  24. apt -y upgrade
  25. apt install -y iputils-ping libpq-dev postgresql-client build-essential pkg-config libssl-dev \
  26. libcairo2 libcairo2-dev libxt-dev libx11-dev libfreetype6-dev libharfbuzz-dev libpng-dev \
  27. libjpeg-dev libtiff5-dev nano netcat-traditional iproute2 libxml2-dev curl zlib1g-dev libicu-dev \
  28. libreadline-dev libblas-dev liblapack-dev gfortran libglpk-dev cmake ninja-build \
  29. libbz2-dev liblzma-dev libpcre2-dev libcurl4-openssl-dev libsqlite3-dev libspatialite-dev \
  30. gdal-bin libgdal-dev libgeos-dev libgeos++-dev proj-bin libproj-dev libudunits2-dev
  31. apt -y autoremove
  32. "
  33. exit 0