- ホストのポート80をコンテナの8080にポートフォワードしてコンテナを立ち上げる
docker run -p 80:8080 -p 50000:50000 jenkins
- 稼働中コンテナでbashを立ち上げ、ログインする
| #cloud-config | |
| coreos: | |
| units: | |
| - name: iptables-restore.service | |
| enable: true | |
| write_files: | |
| - path: /var/lib/iptables/rules-save | |
| permissions: 0644 | |
| owner: root:root |
| <source> | |
| type forward | |
| port 24224 | |
| </source> | |
| <match *.*> | |
| type stdout // /var/log/td-agent/td-agent.logに追記されていく | |
| </match> |
| - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
| return 1; | |
| } | |
| - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
| return [self.items count]; | |
| } | |
| - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath { |
| import json | |
| import os.path | |
| import sys | |
| import os | |
| # boto3のバージョンが古いためカレントディレクトリにインストールしたboto3を利用する | |
| # pip install -t boto3 . | |
| root = os.environ["LAMBDA_TASK_ROOT"] | |
| sys.path.insert(0, root) | |
| import boto3 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="/bootstrap/dist/css/bootstrap-theme.min.css"> | |
| </head> | |
| <header> |
| ### Build Configuration | |
| WORKSPACE=**** | |
| PROJECT_WORKSPACE=**** | |
| BUILD_NUMBER=**** | |
| SCHEME=**** | |
| CONFIGURATION=**** | |
| PROVISIONING_NAME=**** | |
| IPA_FILE_NAME=****.ipa | |
| iOS_SDK=**** | |
| PASS=**** |