run.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 5
  16. # Uue rocker image juures vajalikud installimised.
  17. cont_name=shiny-r-studio
  18. docker exec -ti -u 0 ${cont_name} sh -c ' \
  19. useradd -m -s /bin/bash ardo; \
  20. echo "ardo:tRJMAHLfDSoYWrGufz9O" | chpasswd; \
  21. '
  22. # Uue rocker image juures vajalikud installimised.
  23. cont_name=shiny-r-studio
  24. docker exec -ti -u 0 ${cont_name} sh -c ' \
  25. apt-get update && \
  26. apt-get install -y --no-install-recommends \
  27. libpq-dev libcairo2-dev libxt-dev libxml2 libxml2-dev \
  28. libglpk-dev imagemagick'
  29. ## Täiendused !!!!
  30. docker exec -ti shiny-r-studio bash -c "
  31. apt update
  32. apt -y upgrade
  33. apt install -y iputils-ping libpq-dev postgresql-client build-essential pkg-config libssl-dev \
  34. libcairo2 libcairo2-dev libxt-dev libx11-dev libfreetype6-dev libharfbuzz-dev libpng-dev \
  35. libjpeg-dev libtiff5-dev nano netcat-traditional iproute2 libxml2-dev curl zlib1g-dev libicu-dev \
  36. libreadline-dev libblas-dev liblapack-dev gfortran libglpk-dev cmake ninja-build \
  37. libbz2-dev liblzma-dev libpcre2-dev libcurl4-openssl-dev libsqlite3-dev libspatialite-dev \
  38. gdal-bin libgdal-dev libgeos-dev libgeos++-dev proj-bin libproj-dev libudunits2-dev
  39. apt -y autoremove
  40. "
  41. exit 0