Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions thrift/README-short.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Apache Thrift compiler: generates cross-language RPC and serialization code from .thrift IDL files
35 changes: 35 additions & 0 deletions thrift/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# What is Apache Thrift?

Apache Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, JavaScript, Node.js, Smalltalk, OCaml, Delphi and other languages.

This image contains the Thrift compiler, `thrift`, which generates code from Thrift interface definition (`.thrift`) files. It does not contain the language-specific Thrift libraries; your application gets those through its own build.

> [thrift.apache.org](https://thrift.apache.org/)

# How to use this image

Generate code from the current project directory:

```console
$ docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/data" %%IMAGE%% --gen py -o /data /data/service.thrift
```

The `-u` flag prevents generated files in the bind mount from being owned by root.

Arguments that start with `-` are passed to `thrift`. Any other command runs as given, so `docker run --rm -it %%IMAGE%% sh` opens a shell.

Print the compiler version:

```console
$ docker run --rm %%IMAGE%% --version
```

List the generators and their options:

```console
$ docker run --rm %%IMAGE%% --help
```

# Versions

The images are built from the voted Apache Thrift source releases. The two latest releases are maintained; older tags stay available but are no longer rebuilt. Tags for 0.12.0 and older come from an earlier, community-maintained image.
1 change: 1 addition & 0 deletions thrift/get-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[the Apache Thrift mailing lists](https://thrift.apache.org/mailing)
1 change: 1 addition & 0 deletions thrift/github-repo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/apache/thrift
1 change: 1 addition & 0 deletions thrift/issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[the Apache Thrift JIRA](https://issues.apache.org/jira/projects/THRIFT)
3 changes: 3 additions & 0 deletions thrift/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
View [license information](https://www.apache.org/licenses/LICENSE-2.0) for the software contained in this image.

Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation.
1 change: 1 addition & 0 deletions thrift/maintainer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[the Apache Thrift project](%%GITHUB-REPO%%)
7 changes: 7 additions & 0 deletions thrift/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"developer-tools"
]
}
}
Loading