This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORKDIR /workspace | |
RUN jdk-6u45-windows-x64.exe /s | |
RUN unzip.exe jboss-5.1.0.GA-jdk6.zip | |
+RUN unzip.exe -o deploy.zip -d jboss-5.1.0.GA\server\default\deploy | |
RUN move jboss-5.1.0.GA C:\jboss-5.1.0.GA | |
- | |
-#RUN unzip.exe -o deploy.zip -d C:\jboss-5.1.0.GA\server\default\deploy | |
COPY /oracle-ds.xml \jboss-5.1.0.GA\server\default\deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hcsshim::ExportLayer - Win32 API call returned error r1=3489660986 err=winapi error #3489660986 layerId=d82614368c00d879f5dc05b61929005c721721753c6a5b686edae12036ad7012 flavour=1 folder=C:\ProgramData\Docker\windowsfilter\d82614368c00d879f5dc05b61929005c721721753c6a5b686edae12036ad7012-16983673 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
# Warning: use with caution! Once ran, this script is going to wipeout all | |
# images that you own into your AWS ECR. | |
aws ecr describe-repositories | jq '.repositories[].repositoryName' | sed s/\"//g | while read repository_name; do | |
batch_delete_string='' | |
aws ecr list-images --repository-name "${repository_name}" | \ | |
jq '.imageIds[].imageTag' | while read image_tag; do | |
batch_delete_string="imageTag=${image_tag} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# stripping double quotes with sed | |
aws ecr describe-repositories | jq '.repositories[].repositoryName' | sed s/\"//g | |
# stripping double quotes with tr | |
aws ecr describe-repositories | jq '.repositories[].repositoryName' | tr -d '"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
read -p "Informe alguma palavra a ser buscada nas anotacoes: " busca | |
echo "Buscando resultados..." | |
grep -i ${busca} anotacoes.txt | |
if [ $? -ne 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:Describe*", | |
"ec2:CreateImage", | |
"ec2:DeregisterImage", | |
"ec2:DeleteSnapshot", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream uwsgi { | |
ip_hash; | |
server 127.0.0.1:40000; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; | |
root /sites/mysite/; | |
access_log /sites/mysite/log/nginx/access.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker ps -a | awk '{ print $1 }' | grep -v CONTAINER | while read container_id; do docker kill $container_id; docker rm $container_id; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Ryan Morrissey | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE_DIR='/home/base' | |
PRIMARY_DIR='/home/primary' | |
SECONDARY_DIR='/home/secondary' | |
mkdir -p ${BASE_DIR} | |
pushd ${BASE_DIR} | |
find ${PRIMARY_DIR} -type d | cut -d '/' -f 7- | grep '/' | while read nested_directory; do | |
mkdir -p ${nested_directory} |