-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from cachix/importing
add importing from S3 documentation
- Loading branch information
Showing
5 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _getting-started: | ||
|
||
Getting Started | ||
=============== | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Importing from S3 | ||
================= | ||
|
||
.. versionadded:: 1.7 | ||
|
||
Overview | ||
-------- | ||
|
||
When transitioning to Cachix, it's common practice to migrate your existing binary caches. | ||
|
||
This document outlines the procedure for importing a binary cache from an Amazon S3 bucket into Cachix. | ||
|
||
This migration process is beneficial for managing garbage collection, implementing enhanced authentication schemes, and consolidating multiple binary caches. | ||
|
||
Prerequisites | ||
------------- | ||
|
||
- **AWS CLI**: The AWS Command Line Interface should be installed and configured on your system. | ||
- **Cachix**: Ensure that Cachix is installed. For instructions on installing Cachix, refer to the Getting Started with Cachix guide. | ||
|
||
Importing Cache from S3 | ||
----------------------- | ||
|
||
The following steps outline the process of importing a binary cache from an S3 bucket: | ||
|
||
Step 1: Configure AWS Credentials | ||
********************************* | ||
|
||
Before proceeding, configure your AWS credentials: | ||
|
||
:: | ||
|
||
$ aws configure | ||
|
||
|
||
Follow the prompts to input your AWS Access Key ID, Secret Access Key, and default region. | ||
|
||
Step 2: Cachix Installation | ||
********************************** | ||
|
||
For installation instructions and verification, refer to the :ref:`Cachix getting started guide <getting-started>`. | ||
|
||
|
||
Step 3: Start the Import Process | ||
******************************** | ||
|
||
To import the binary cache from your S3 bucket to Cachix, use the following command: | ||
|
||
Syntax:: | ||
|
||
$ cachix import <cache-name> s3://<bucket-name> | ||
|
||
|
||
Example:: | ||
|
||
$ cachix import mycache s3://mybucket | ||
|
||
|
||
Replace `<cache-name>` with your Cachix cache name and `<bucket-name>` with your S3 bucket name. | ||
|
||
Important Notes | ||
--------------- | ||
|
||
- Data Streaming: All contents of the cache will be streamed through the machine executing the command. It is recommended to perform this operation on a machine with a fast network connection. |
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
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