Posts

Showing posts with the label images

Using Capistrano to Bundle Amazon EC2 Images

Image
Using Capistrano to Bundle Amazon EC2 Images Ive found the following bit of Capistrano script to be useful when tinkering with EC2 images. I can make a change and then bundle the image with just one command: cap admin:bundle The most difficult part of this script was finding out how to upload files to the remote instance using scp . The rest is fairly straightforward. I am only posting this script because I havent seen this functionality posted anywhere else. # capfile for Amazon EC2 Bundling. Normally, a yaml file would be # hold configuration parameters. I am using environment # variables because they are also used by the EC2 # programs - why have the information in two places? # This script assumes that you are only bundling one # instance at a time. # EC2 Instance Hostname to be bundled. ec2_hostname = ENV[BUNDLE_EC2_HOSTNAME] # S3 Bucket Name (where the bundle is uploaded) s3_bucket_name = ENV[BUNDLE_S3_BUCKET_NAME] # If you are using ElasticFox (and if not, why not?) that # you...

Video Render 3D images of EAGLE PCB projects

Image
Video Render 3D images of EAGLE PCB projects This is a video follow-up of my previous tutorial about EAGLE and POV-Ray. I will outline below the main steps that you will see in the video and I will continue to improve the result at the end of this post. If you haven't read about this before, EAGLE is a schematic capture and circuit board design software. The circuit boards can be processed with a set of scripts and converted into POV-Ray files. In this way you can render great looking 3D pictures of the circuit boards. All used software is available for all major operating systems. The video presents only Linux Ubuntu installation and configuration. Read more � download  file  now

Using AZUL 7 instead of OpenJDK Java for smaller Docker images

Using AZUL 7 instead of OpenJDK Java for smaller Docker images Witness a tale of two Dockerfiles that perform the same task. See the size difference. Imagine how it might change infrastructure costs. DOCKERFILE ONE FROM debian:wheezy RUN apt-get update && apt-get install -y openjdk-7-jre && rm -rf /var/lib/apt/lists/* ADD target/si-standalone-sample-1.0-SNAPSHOT.jar / ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64 ENV CLASSPATH si-standalone-sample-1.0-SNAPSHOT.jar CMD [ "java", "org.springframework.boot.loader.JarLauncher" ] DOCKERFILE TWO FROM debian:wheezy RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9 && echo "deb http://repos.azulsystems.com/ubuntu precise main" >> /etc/apt/sources.list.d/zulu.list && apt-get -qq update && apt-get -qqy install zulu-7 && rm -rf /var/lib/apt/lists/* ADD target/si-standalone-sample-1.0-SNAPSHOT.jar / ENV JAVA_HOME /usr/lib...