This is good advice particularly in Linux
RUN groupadd -r nodejs \
&& useradd -m -r -g nodejs nodejs
USER nodejs
FROM node:latest AS storefront | |
WORKDIR /usr/src/atsea/app/react-app | |
COPY react-app/package.json . | |
RUN npm install | |
COPY . /usr/src/atsea/app | |
RUN npm run build | |
FROM maven:latest AS appserver | |
WORKDIR /usr/src/atsea | |
COPY pom.xml . |
#!/bin/bash | |
docker-compose down | |
mkdir -p app/react-app/node_modules | |
npm install --prefix app/react-app | |
npm run build --prefix app/react-app | |
rm -r app/static; mv app/react-app/build app/static | |
mvn package | |
cp -f target/AtSea-0.0.1-SNAPSHOT.jar app/ | |
docker-compose build | |
docker-compose u |
sudo netstat -plunt |
Note: many issues listed below are not specific to Rails or to Ruby. They can also exist in other languages or web frameworks presenting similar challeneges. It is important to note these challenges, because they can impede the workflow and best practices taught and used by Rails practitioners.
There are many different versions of Ruby in use. This is very unique, in that, in the Python world, you have many versions, but almost everyone will be using the last 2.X or the last 3.X. In the Java world, most use cases are covered by the last two major releases of either Java released by Oracle or on OpenJDK.
sudo launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
I hereby claim:
To claim this, I am signing this object:
# lansatutil directory | |
LANDSAT = ~/landsat | |
# scenes to target | |
LANDSAT_IDS = \ | |
LC81220442016038LGN00 \ | |
LC81220452016038LGN00 \ | |
LC81210442014281LGN00 \ | |
LC81210452014281LGN00 |
#! /bin/bash | |
# Convert Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs. | |
# | |
# Requirements: | |
# * gdal http://www.mapbox.com/tilemill/docs/guides/gdal/ | |
# * convert (image-magick) | |
# | |
# Reference info: | |
# http://www.mapbox.com/blog/putting-landsat-8-bands-to-work/ |