Mutagen compose Mutagen composeは、Mutagenというローカル環境とリモート環境のディレクトリを高速に同期させることができるオープンソースの開発ツールをDocker composeと統合させたツール。 つまり、Docker環境でホスト側とコンテナー側のファイル同期を高速で行うのに特化したサードパーティーのツール。 事前準備 mutagen-composeのインストール
この記事について この記事は、Docker Desktopのチュートリアルを和訳したものです。 公式のチュートリアルなので、安心して、かつ効率的に学習することができます。 Docker DesktopからDocker Hub、Docker Composeまで網羅されているので、初学者がDockerに初めて触れたり、中級者が基礎を振り返るのに最適です。 翻訳元のチュートリアルは、2021/10/7時点で最新のものです。長い時間が経過している場合、情報が古くなっている場合がございますのでご注意ください。 読者に誤解を与えない部分は、読みやすさを重視して適宜意訳しています。 DeepL等を使用して推敲は行っていますが、間違っているところやより良い表現があれば、編集リクエストをお願いいたします。 翻訳元 getting-started : https://github.com/docker/get
AWSは、AWSのサービスを活用した実践的なハンズオンコンテンツを多数公開しており、 日本語化もされています。 アマゾン ウェブ サービス (AWS) の実践的チュートリアル https://aws.amazon.com/jp/getting-started/hands-on/ 社内向けにコンテナやAPI Gateway初学者向けのハンズオン教材を探していたところ、 ちょうどいいチュートリアルをみつけました。 現代的なウェブアプリケーションの構築 https://aws.amazon.com/jp/getting-started/hands-on/build-modern-app-fargate-lambda-dynamodb-python/ このチュートリアル、 ECS/Fargateを活用したコンテナアプリケーションの公開 Codeサービスを活用したCI/CDパイプラインの構築 Ama
概要 Dockerfileを書くためのベストプラクティスを読んで、ベストプラクティスなDockerfileを作った/作りたい人が対象です。 そのDockerfileで大丈夫かを3分でチェックできるツールをつくりました。Hadolintのような、単なるDockerfileのLinterではなく、ビルドしたイメージの中身まで細かく分析します。 通常のLinterでは原理的に不可能な、ベースイメージに存在している危険性も含めて調べることができます。 ←GitHubのStarもらえると嬉しいです。 Dockleの内部で使われているツールはTrivy, Vulsなどと同じなので、そのあたりを踏まえて、動作原理を別記事にまとめました。 人を震えさせるツール「Dockle」の仕組みを解説 なお、DockerHubで人気のコンテナに対して試した結果をサイトにして公開しています。操作方法もふくめて、別記事に
Qiitaで書くのは初めてなので不届きなどありましたらお許し下さい。 目的 ウェブアプリケーションを作っていると色々な制限を実装しなければならないことが多いと思います。 その中でログインしているユーザーができることを許可/拒否する権限を実装することがあると思います。 例えば特定のユーザーはこの機能を使うことができるけど、それ以外のユーザーは使えないようにするとか、ユーザーごとに設定するのは管理が大変だからロールに設定したいとかです。 自分は10年以上Javaでウェブアプリケーションを作っておりSpringではSpringSecurityを使って同様な機能の実装ができます。 Laravelではlaravel-permissionというパッケージを使うことで比較的簡単に実装することができます。 実際に簡単なアプリケーションを作って見たいと思います。 動作(開発)環境 PHP 7.1 Larav
2020/05/26 追記 Docker for Mac の Mutagen-based caching で Volume のパフォーマンスが劇的に改善した Mutagen単独で試してみたことがあって、すごく速くてよかったんですが、 Docker for macに統合されそうな感じになってるんですね。 これは期待。 2017/3/15 追記 先日この問題のissueに対して、 というコメントがつけられ、それに関する というプルリクが 本体にマージされたようです。 まだ詳しく見ていませんが、マウント時に同期方法オプションが指定できるようになり、そのオプションによってキャッシュするレベルを制御して同期を軽くしよう、というような感じになるようでした。 実際にリリース版で使えるのはいつなのかわかりませんが、やはり本体が早くなるのが一番いいのでちょっと期待ですね。 ========== 追記ここまで
諸事情によりローカルに作ったmysqlにdockerコンテナから接続する必要があったので調べました。 2022/01/27追記 Docker desktop4.3.0において、記事で紹介しているdocker.for.win.localhostとdocker.for.mac.localhost両方ともは非推奨になりました。(なぜかwindowsのリリースノートもmac用のDNSが乗ってますが……) https://docs.docker.com/desktop/windows/release-notes/#docker-desktop-430 https://docs.docker.com/desktop/mac/release-notes/#docker-desktop-430 今後は変わりに以下のDNSにアクセスすれば良いとのことなので、記事は適宜読み替えるようおねがいします。macもw
はじめに Dockerの勉強も兼ねてrailsのアプリをコンテナに作ろうとしたが環境構築にアホみたいに時間がかかった。 Dockerもrailsも(もはや初歩的なコマンドすら)不慣れなプログラマを救いたいので、手順を書きます。 あとDockerはこれからrailsエンジニアになる人が合わせて使えるようになっておけばスキルとして加点になるので(新しめの技術なので供給量的にも)、勉強のきっかけになればと。 この手順すらめんどくさいと思った方へ(2019-02-04追記) 何もない状態からrailsサーバーとMySQLのコンテナを立ててくれるシェル ※真面目に作りを意識しながらやった方が今後応用が効くようになるのでできるだけ読んで欲しいです... 環境(!!Rails5系で作成してます!!) Mac OS Ruby2.5.3 Rails5.2.2 MySQL5.7 -> Rails6系では、we
VagrantはVirtualBox、 Hyper-Vや DockerをサポートしたBoxを出力すると同時に、ほかのマシンの種類も管理する能力がある。これは、Vagrantで他のプロバイダを使用することで行われる。 プロバイダの変更は、より多くの異なる機能を提供することができる。例えば、実業務用にVagrantを使用している場合、十分なサポートと、一般的にVirtualBoxと比較して安定的でパフォーマンスに優れることからVMwareプロバイダが推奨される。 他のプロバイダが使用可能となる前に、そのプロバイダをインストールする必要がある。プロバイダのインストールはVagrantプラグイン・システムを介して行われる。 一度プロバイダがインストールされれば、Vagrantに望むのと同様に、使用方法は簡単で単純である。より詳細な情報は左にあるナビゲーションの中から関連のある箇所を見つけて参照する
Goでの小さいweb開発について 依頼されて開発をして、3年近く小さめのwebサイトをGo + Revelで運用してきて正直そこまで恩恵を受けれなかったように感じる。ので以下のように構成変更した。 Before 言語: Go v1.9 パッケージ管理: dep フレームワーク: Revel v0.21.0 ORM: GORM ミドルウェア: なし、cacheはrevel cache DB: MYSQL 開発環境: Docker CI/CD: CircleCI こうなるまでにも3年間でいろいろしたんですが、いろいろ問題がありました。 Beforeの問題点 Revelが思ったほど盛り上がらなかった GoでのフルスタックなMVCフレームワークとして前は盛り上がってたけど・・・ Web開発のためのモジュール追加があまりなかったので自前で実装した部分がとても多かった Goの変遷がめんどかった Goを
Ubuntu 上でなぜか MySQL コンテナーが起動せず、ハマりました。ワークアラウンドをメモしておきます。 再現環境 Ubuntu 16.04.2 LTS 64bit (on Vagrant) 現象 以下のような docker-compose.yml を作成して、 docker-compose up -d db で起動しようとしても、 Exit 1 で終了してしまいます。 version: '2' services: db: image: mysql:5.6 ports: - "3302:3306" environment: - TZ=JST-9 - MYSQL_USER=foo - MYSQL_PASSWORD=foo - MYSQL_ROOT_PASSWORD=foo - MYSQL_DATABASE=foo volumes: - ~/foobar/db/mysql/dump/:/
社内でLaravelを使う上で、今までHomesteadを使っていたのですが、デプロイも楽にしたい、Docker触りたいっていう単純な気持ちでLaradockに手を出してみました。 個人で色々調べて手順をまとめたので、記事にしてみます。 自分が書いた社内Docker初心者向け手順書を元に書いたので、ちょっと細かめですがご了承下さい。 Laradockとは? http://laradock.io/ Dockerを用いてlaravelの環境を作るために必要なものがほぼ全てパッケージ化されているものです。 vagrantでいうHomesteadのようなものですね。Symfony、CodeIgniterとかも普通に使えるらしいです。 Vue等も最初から使えたり、Dockerなのでimageをそのままデプロイしたりもできるので僕はHomesteadよりこっちが好きです。 また、Dockerfileや
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? @rana_kualuさんの2018年の最先端バックエンドエンジニアになろうという翻訳記事がとても興味深かったのですが、記事内で提示されているロードマップに関して微妙に違和感を感じる部分もありましたので、 記事に記載されているスキルは現場でどの程度必要なのか 記事に記載されていないが現場において重要なスキルは何か といった辺りを、自分なりの意見を交えてちょっと書き出してみました。 自分をエンジニアとして最先端だとは全く思っていないのですが、最近のバックエンドのトレンドに一応多少なりともきちんとキャッチアップしてるかなとは思うので、若い方
データベースマイグレーションツールでフレームワーク非依存のもので有名所といえばflywayだが、Java製のツールであるためJVMを入れておく必要がある。JVMを入れるというのが意外とハードルで、稼働中の環境に入れる場合は影響範囲が怖かったり、CIのたびに容量が小さくないJVMを入れるのはちょっと・・・というケースもある。 そんなときにオススメしたいのがGo製のマイグレーションツールmattes/migrateだ。flywayと同じくCLIツールだが、JVMのようなランタイムは不要だ。ビルド済みのバイナリがGitHubで提供されていて、インストールはcurlやwgetですぐにできる。容量も7.1Mと小さい。MySQLやPostgreSQLなど主要なデータベースに対応している。Go製であるが、マイグレーションファイルは素のSQLで書くから、ユーザにはGo言語の知識は必要ない。 mattes/
最近ようやっと本格的に触りだしたので備忘録的に書きます。 プラクティスやアンチパターン的な話なので、 いわゆるチートシートやチュートリアルについては他記事を参照ください。 Dockerfile関連 FROMは慎重に選ぶ なるべく公式のDockerfileを使う。 refs: https://hub.docker.com/explore/ だいたい必要なものは揃ってるはず ユーザーコンテナは自分でDockerfileを作成する時の参考に Download数の多いDockerfileは特に参考になる 軽量コンテナについて はじめはなるべく標準のコンテナを使い、軽量コンテナの使用は一旦避ける まずはコンテナ運用のメリット・デメリットを体感し自分が求めるものかどうかを見極める 軽量コンテナ自体はnode:7-slim,golang:alpineなど公式的に提供されているので使う場合はこれらを使う
はじめに 先日、「スタートアップRails勉強会」というものに参加し、 10名弱のRailsエンジニアの方達がLTをされたので、メモとしてまとめときます。 技術的負債を減らしやることに集中すべし スタートアップはスピード感が大事!!ということで、 負債に時間をかけてられません。そこで、 Railsのアップグレードは頻繁に行うべし! じゃないと、後から大変なことになるみたいですね・・・ あとは、 - コードは少なく書け!不要なコードはガンガン消す! - アップグレードすべきものは、その都度slackに流れてくるようにして、アップグレードするべし。 LT参考資料: http://qiita.com/kmszk/items/ad687e772da454e3f614 Docker-composeを導入せよ 動く環境をコマンド一つで構築、できるとか、なんとか Dockerは知ってるけどDocker-
今更ながらQiitaの記事をRSSリーダーで確認したいなと思いGoogle先生で確認するとありました!タグ付けされたものに対して最新のフィードで確認できるのですね! qiita.com Dockerの場合は http://qiita.com/tags/Docker とタグ別に一覧ページがあるので http://qiita.com/tags/Docker/feed.atom とatom形式になってるページが作られているのでそちらを読み込ませます。 私はFeedlyを使ってるので、 タグ別一覧ページをそのまま貼り付けてるとサジェストが出てきて楽ちんでした。 ユーザページも同様に http://qiita.com/izumin5210/feed というように 後ろに/feedをつけるとRSSで読み込めるので特定のユーザの記事を追いかけたい人にはかなり便利ですね〜 蛇足で QiitaにはOrgan
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く