This file contains hidden or 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
# <%= @app['config']['foo'] %> | |
# to | |
# {{ app.config.foo }} | |
for file in $(ls -1 templates/); do | |
sed -i -e "s/<%= @/{{ /" $file # Replace <%= @ with {{ | |
sed -i -e "s/%>/}}/" $file # Replace %> with }} | |
sed -i -e "s/\['/./" $file # Replace first occurence of [' with . | |
sed -i -e "s/'\]\['/./g" $file # Replace all middle '][' with . | |
sed -i -e "s/'\] / /" $file # Remove closing '] |
This file contains hidden or 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
# /etc/systemd/system/ecr_login.service | |
[Unit] | |
Description=Docker AWS ECR login daemon | |
Wants=network-online.target | |
After=network.target network-online.target docker.service | |
[Service] | |
Type=oneshot | |
User=ubuntu | |
ExecStart=/bin/bash -c '$$(/usr/bin/aws ecr get-login --no-include-email --region us-east-1)' |